├── sdk ├── .swagger-codegen │ └── VERSION ├── src │ └── DocuSign.Rooms │ │ ├── icon.png │ │ ├── Client │ │ ├── ExceptionFactory.cs │ │ ├── IHttpClient.cs │ │ ├── GlobalConfiguration.cs │ │ ├── SwaggerDateConverter.cs │ │ ├── IApiAccessor.cs │ │ ├── ApiResponse.cs │ │ ├── DocuSignResponse.cs │ │ ├── ApiClient.cs │ │ ├── IReadableConfiguration.cs │ │ ├── ApiException.cs │ │ └── DocuSignRequest.cs │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── Model │ │ ├── ProductVersion.cs │ │ ├── AccountStatus.cs │ │ ├── ListingType.cs │ │ ├── FieldsCustomDataFilterType.cs │ │ ├── RoomStatus.cs │ │ ├── RolesFilterContextTypes.cs │ │ ├── AccessLevel.cs │ │ ├── MemberSortingOption.cs │ │ ├── RoomUserSortingOption.cs │ │ ├── RoomPicture.cs │ │ ├── FieldData.cs │ │ ├── GlobalStates.cs │ │ ├── ExternalFormFillSession.cs │ │ ├── Envelope.cs │ │ ├── FieldDataForCreate.cs │ │ ├── FieldDataForUpdate.cs │ │ ├── GlobalCountries.cs │ │ ├── GlobalTimeZones.cs │ │ ├── ESignPermissionProfileList.cs │ │ ├── GlobalCurrencies.cs │ │ ├── GlobalTaskStatuses.cs │ │ ├── GlobalContactSides.cs │ │ ├── GlobalActivityTypes.cs │ │ ├── GlobalPropertyTypes.cs │ │ ├── GlobalTaskDateTypes.cs │ │ ├── NullableFieldData.cs │ │ ├── RoomUserRemovalDetail.cs │ │ ├── TaskListForCreate.cs │ │ ├── GlobalFinancingTypes.cs │ │ ├── GlobalOriginsOfLeads.cs │ │ ├── GlobalClosingStatuses.cs │ │ ├── FormForAdd.cs │ │ ├── TaskListSummaryList.cs │ │ ├── GlobalRoomContactTypes.cs │ │ ├── GlobalTransactionSides.cs │ │ ├── RegionReferenceCountList.cs │ │ ├── FormGroupForCreate.cs │ │ ├── FormGroupForUpdate.cs │ │ ├── OfficeReferenceCountList.cs │ │ ├── LockedOutDetails.cs │ │ ├── ESignAccountRoleSettings.cs │ │ ├── DesignatedOffice.cs │ │ └── DesignatedRegion.cs │ │ └── DocuSign.Rooms.csproj └── DocuSign.Rooms.sln ├── test ├── SdkNetCoreTests │ ├── SdkNetCoreTests.csproj │ ├── TestConfig.cs │ └── JwtAuthNetCoreTests.cs ├── SdkTests │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── packages.config │ ├── TestConfig.cs │ ├── JwtAuthUnitTests.cs │ └── app.config └── SdkTests.sln ├── LICENSE ├── CHANGELOG.md └── .gitignore /sdk/.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.4.21 -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-rooms-csharp-client/master/sdk/src/DocuSign.Rooms/icon.png -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/ExceptionFactory.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | 12 | using System; 13 | 14 | namespace DocuSign.Rooms.Client 15 | { 16 | /// 17 | /// A delegate to ExceptionFactory method 18 | /// 19 | /// Method name 20 | /// Response 21 | /// Exceptions 22 | public delegate Exception ExceptionFactory(string methodName, DocuSignResponse response); 23 | } -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/IHttpClient.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System.Net; 12 | using System.Threading; 13 | using System.Threading.Tasks; 14 | 15 | namespace DocuSign.Rooms.Client 16 | { 17 | public interface IHttpClient 18 | { 19 | void AddDefaultRequestHeader(string header, string value); 20 | 21 | DocuSignResponse SendRequest(DocuSignRequest request); 22 | 23 | Task SendRequestAsync(DocuSignRequest request, CancellationToken cancellationToken); 24 | } 25 | } -------------------------------------------------------------------------------- /test/SdkNetCoreTests/SdkNetCoreTests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net6.0 5 | 6 | false 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | ..\..\sdk\src\DocuSign.Rooms\bin\Debug\netstandard2.0\DocuSign.Rooms.dll 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/GlobalConfiguration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | 12 | using System; 13 | using System.Reflection; 14 | using System.Collections.Generic; 15 | using System.IO; 16 | using System.Linq; 17 | using System.Text; 18 | using System.Threading; 19 | 20 | namespace DocuSign.Rooms.Client 21 | { 22 | /// 23 | /// provides a compile-time extension point for globally configuring 24 | /// API Clients. 25 | /// 26 | /// 27 | /// A customized implementation via partial class may reside in another file and may 28 | /// be excluded from automatic generation via a .swagger-codegen-ignore file. 29 | /// 30 | public partial class GlobalConfiguration : Configuration 31 | { 32 | 33 | } 34 | } -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | 4 | // General Information about an assembly is controlled through the following 5 | // set of attributes. Change these attribute values to modify the information 6 | // associated with an assembly. 7 | 8 | // Setting ComVisible to false makes the types in this assembly not visible 9 | // to COM components. If you need to access a type in this assembly from 10 | // COM, set the ComVisible attribute to true on that type. 11 | [assembly: ComVisible(false)] 12 | 13 | // Version information for an assembly consists of the following four values: 14 | // 15 | // Major Version 16 | // Minor Version 17 | // Build Number 18 | // Revision 19 | // 20 | // You can specify all the values or you can default the Build and Revision Numbers 21 | // by using the '*' as shown below: 22 | // [assembly: AssemblyVersion("1.0.*")] 23 | internal class AssemblyInformation 24 | { 25 | public const string AssemblyInformationalVersion = "2.0.2"; 26 | } -------------------------------------------------------------------------------- /sdk/DocuSign.Rooms.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 2012 3 | VisualStudioVersion = 12.0.0.0 4 | MinimumVisualStudioVersion = 10.0.0.1 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocuSign.Rooms", "src\DocuSign.Rooms\DocuSign.Rooms.csproj", "{97F425D8-D0DA-4653-A46C-4E6A45B370AC}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|Any CPU = Debug|Any CPU 10 | Release|Any CPU = Release|Any CPU 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {97F425D8-D0DA-4653-A46C-4E6A45B370AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 14 | {97F425D8-D0DA-4653-A46C-4E6A45B370AC}.Debug|Any CPU.Build.0 = Debug|Any CPU 15 | {97F425D8-D0DA-4653-A46C-4E6A45B370AC}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 | {97F425D8-D0DA-4653-A46C-4E6A45B370AC}.Release|Any CPU.Build.0 = Release|Any CPU 17 | EndGlobalSection 18 | GlobalSection(SolutionProperties) = preSolution 19 | HideSolutionNode = FALSE 20 | EndGlobalSection 21 | EndGlobal -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/SwaggerDateConverter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using Newtonsoft.Json.Converters; 12 | 13 | namespace DocuSign.Rooms.Client 14 | { 15 | /// 16 | /// Formatter for 'date' swagger formats ss defined by full-date - RFC3339 17 | /// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types 18 | /// 19 | public class SwaggerDateConverter : IsoDateTimeConverter 20 | { 21 | /// 22 | /// Initializes a new instance of the class. 23 | /// 24 | public SwaggerDateConverter() 25 | { 26 | // full-date = date-fullyear "-" date-month "-" date-mday 27 | DateTimeFormat = "yyyy-MM-dd"; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) - Docusign, Inc. (https://www.docusign.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/IApiAccessor.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | 12 | using System; 13 | 14 | namespace DocuSign.Rooms.Client 15 | { 16 | /// 17 | /// Represents configuration aspects required to interact with the API endpoints. 18 | /// 19 | public interface IApiAccessor 20 | { 21 | /// 22 | /// Gets or sets the ApiClient object 23 | /// 24 | /// An instance of the ApiClient 25 | DocuSignClient ApiClient {get; set;} 26 | 27 | /// 28 | /// Gets the base path of the API client. 29 | /// 30 | /// The base path 31 | String GetBasePath(); 32 | 33 | /// 34 | /// Provides a factory method hook for the creation of exceptions. 35 | /// 36 | ExceptionFactory ExceptionFactory { get; set; } 37 | } 38 | } -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/ProductVersion.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines ProductVersion 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum ProductVersion 31 | { 32 | 33 | /// 34 | /// Enum V5 for value: v5 35 | /// 36 | [EnumMember(Value = "v5")] 37 | V5 = 1, 38 | 39 | /// 40 | /// Enum V6 for value: v6 41 | /// 42 | [EnumMember(Value = "v6")] 43 | V6 = 2 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/AccountStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines AccountStatus 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum AccountStatus 31 | { 32 | 33 | /// 34 | /// Enum Active for value: Active 35 | /// 36 | [EnumMember(Value = "Active")] 37 | Active = 1, 38 | 39 | /// 40 | /// Enum Pending for value: Pending 41 | /// 42 | [EnumMember(Value = "Pending")] 43 | Pending = 2 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/ListingType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines ListingType 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum ListingType 31 | { 32 | 33 | /// 34 | /// Enum PublicRecords for value: PublicRecords 35 | /// 36 | [EnumMember(Value = "PublicRecords")] 37 | PublicRecords = 1, 38 | 39 | /// 40 | /// Enum MLS for value: MLS 41 | /// 42 | [EnumMember(Value = "MLS")] 43 | MLS = 2 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /test/SdkTests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SdkTests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("DocuSign")] 12 | [assembly: AssemblyProduct("SdkTests")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("a84588ae-a5ff-4d5c-8c5b-ca0bd1332060")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/FieldsCustomDataFilterType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines FieldsCustomDataFilterType 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum FieldsCustomDataFilterType 31 | { 32 | 33 | /// 34 | /// Enum None for value: None 35 | /// 36 | [EnumMember(Value = "None")] 37 | None = 1, 38 | 39 | /// 40 | /// Enum IsRequiredOnCreate for value: IsRequiredOnCreate 41 | /// 42 | [EnumMember(Value = "IsRequiredOnCreate")] 43 | IsRequiredOnCreate = 2, 44 | 45 | /// 46 | /// Enum IsRequiredOnSubmit for value: IsRequiredOnSubmit 47 | /// 48 | [EnumMember(Value = "IsRequiredOnSubmit")] 49 | IsRequiredOnSubmit = 3 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/RoomStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines RoomStatus 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum RoomStatus 31 | { 32 | 33 | /// 34 | /// Enum Active for value: Active 35 | /// 36 | [EnumMember(Value = "Active")] 37 | Active = 1, 38 | 39 | /// 40 | /// Enum Pending for value: Pending 41 | /// 42 | [EnumMember(Value = "Pending")] 43 | Pending = 2, 44 | 45 | /// 46 | /// Enum Closed for value: Closed 47 | /// 48 | [EnumMember(Value = "Closed")] 49 | Closed = 3, 50 | 51 | /// 52 | /// Enum Open for value: Open 53 | /// 54 | [EnumMember(Value = "Open")] 55 | Open = 4 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /test/SdkTests/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /test/SdkTests.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.29806.167 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SdkTests", "SdkTests\SdkTests.csproj", "{603F7955-D911-4DF1-AE58-DFC3D015D3B0}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SdkNetCoreTests", "SdkNetCoreTests\SdkNetCoreTests.csproj", "{A7F0BCA2-4BDF-49DC-8E48-62FA897C2EBB}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {603F7955-D911-4DF1-AE58-DFC3D015D3B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {603F7955-D911-4DF1-AE58-DFC3D015D3B0}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {603F7955-D911-4DF1-AE58-DFC3D015D3B0}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {603F7955-D911-4DF1-AE58-DFC3D015D3B0}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {A7F0BCA2-4BDF-49DC-8E48-62FA897C2EBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {A7F0BCA2-4BDF-49DC-8E48-62FA897C2EBB}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {A7F0BCA2-4BDF-49DC-8E48-62FA897C2EBB}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {A7F0BCA2-4BDF-49DC-8E48-62FA897C2EBB}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {10DCC3EC-815B-4DE3-A9E8-C4AADE9AB546} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/RolesFilterContextTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines RolesFilterContextTypes 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum RolesFilterContextTypes 31 | { 32 | 33 | /// 34 | /// Enum AllRoles for value: AllRoles 35 | /// 36 | [EnumMember(Value = "AllRoles")] 37 | AllRoles = 1, 38 | 39 | /// 40 | /// Enum AssignableRolesBasedOnCompanyPermissions for value: AssignableRolesBasedOnCompanyPermissions 41 | /// 42 | [EnumMember(Value = "AssignableRolesBasedOnCompanyPermissions")] 43 | AssignableRolesBasedOnCompanyPermissions = 2, 44 | 45 | /// 46 | /// Enum AssignableRolesBasedOnAllPermissions for value: AssignableRolesBasedOnAllPermissions 47 | /// 48 | [EnumMember(Value = "AssignableRolesBasedOnAllPermissions")] 49 | AssignableRolesBasedOnAllPermissions = 3 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/ApiResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | 14 | namespace DocuSign.Rooms.Client 15 | { 16 | /// 17 | /// API Response 18 | /// 19 | public class ApiResponse 20 | { 21 | /// 22 | /// Gets or sets the status code (HTTP status code) 23 | /// 24 | /// The status code. 25 | public int StatusCode { get; private set; } 26 | 27 | /// 28 | /// Gets or sets the HTTP headers 29 | /// 30 | /// HTTP headers 31 | public IDictionary Headers { get; private set; } 32 | 33 | /// 34 | /// Gets or sets the data (parsed HTTP body) 35 | /// 36 | /// The data. 37 | public T Data { get; private set; } 38 | 39 | /// 40 | /// Initializes a new instance of the class. 41 | /// 42 | /// HTTP status code. 43 | /// HTTP headers. 44 | /// Data (parsed HTTP body) 45 | public ApiResponse(int statusCode, IDictionary headers, T data) 46 | { 47 | this.StatusCode= statusCode; 48 | this.Headers = headers; 49 | this.Data = data; 50 | } 51 | 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/AccessLevel.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines AccessLevel 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum AccessLevel 31 | { 32 | 33 | /// 34 | /// Enum Contributor for value: Contributor 35 | /// 36 | [EnumMember(Value = "Contributor")] 37 | Contributor = 1, 38 | 39 | /// 40 | /// Enum Office for value: Office 41 | /// 42 | [EnumMember(Value = "Office")] 43 | Office = 2, 44 | 45 | /// 46 | /// Enum Region for value: Region 47 | /// 48 | [EnumMember(Value = "Region")] 49 | Region = 3, 50 | 51 | /// 52 | /// Enum Company for value: Company 53 | /// 54 | [EnumMember(Value = "Company")] 55 | Company = 4, 56 | 57 | /// 58 | /// Enum Admin for value: Admin 59 | /// 60 | [EnumMember(Value = "Admin")] 61 | Admin = 5 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /test/SdkTests/TestConfig.cs: -------------------------------------------------------------------------------- 1 | using DocuSign.Rooms.Client; 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace SdkTests 6 | { 7 | class TestConfig 8 | { 9 | public string IntegratorKey { get; set; } 10 | public string Host { get; set; } 11 | public DocuSignClient ApiClient { get; set; } 12 | //public Configuration Configuration { get; set; } 13 | public string AccountId { get; set; } 14 | public string RecipientEmail { get; set; } 15 | public string RecipientName { get; set; } 16 | public string ReturnUrl { get; set; } 17 | public string UserId { get; set; } 18 | public string OAuthBasePath { get; set; } 19 | public string PrivateKey { get; set; } 20 | public int ExpiresInHours { get; set; } 21 | 22 | public TestConfig(string integratorKey = null, string host = null, string recipientEmail = null, string recipientName = null, string returnUrl = null) 23 | { 24 | string userIdFromEnv = Environment.GetEnvironmentVariable("userid"); 25 | string integratorKeyFromEnv = Environment.GetEnvironmentVariable("integratorkey"); 26 | 27 | this.Host = (host != null) ? host : "https://demo.rooms.docusign.com/restapi"; 28 | this.IntegratorKey = (integratorKey != null) ? integratorKey : integratorKeyFromEnv; 29 | 30 | this.RecipientEmail = (recipientEmail != null) ? recipientEmail : "docusignsdktest@mailinator.com"; 31 | this.RecipientName = (recipientName != null) ? recipientName : "Pat Developer"; 32 | 33 | this.ReturnUrl = (returnUrl != null) ? returnUrl : "https://www.docusign.com/api"; 34 | 35 | this.UserId = userIdFromEnv; 36 | this.OAuthBasePath = "account-d.docusign.com"; 37 | this.PrivateKey = Environment.GetEnvironmentVariable("privatekey"); 38 | this.ExpiresInHours = 1; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /test/SdkNetCoreTests/TestConfig.cs: -------------------------------------------------------------------------------- 1 | using DocuSign.Rooms.Client; 2 | using System; 3 | using System.Collections.Generic; 4 | 5 | namespace SdkNetCoreTests 6 | { 7 | class TestConfig 8 | { 9 | public string IntegratorKey { get; set; } 10 | public string Host { get; set; } 11 | public DocuSignClient ApiClient { get; set; } 12 | //public Configuration Configuration { get; set; } 13 | public string AccountId { get; set; } 14 | public string RecipientEmail { get; set; } 15 | public string RecipientName { get; set; } 16 | public string ReturnUrl { get; set; } 17 | public string UserId { get; set; } 18 | public string OAuthBasePath { get; set; } 19 | public string PrivateKey { get; set; } 20 | public int ExpiresInHours { get; set; } 21 | 22 | public TestConfig(string integratorKey = null, string host = null, string recipientEmail = null, string recipientName = null, string returnUrl = null) 23 | { 24 | string userIdFromEnv = Environment.GetEnvironmentVariable("userid"); 25 | string integratorKeyFromEnv = Environment.GetEnvironmentVariable("integratorkey"); 26 | 27 | this.Host = (host != null) ? host : "https://demo.rooms.docusign.com/restapi"; 28 | this.IntegratorKey = (integratorKey != null) ? integratorKey : integratorKeyFromEnv; 29 | 30 | this.RecipientEmail = (recipientEmail != null) ? recipientEmail : "docusignsdktest@mailinator.com"; 31 | this.RecipientName = (recipientName != null) ? recipientName : "Pat Developer"; 32 | 33 | this.ReturnUrl = (returnUrl != null) ? returnUrl : "https://www.docusign.com/api"; 34 | 35 | this.UserId = userIdFromEnv; 36 | this.OAuthBasePath = "account-d.docusign.com"; 37 | this.PrivateKey = Environment.GetEnvironmentVariable("privatekey"); 38 | this.ExpiresInHours = 1; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/DocuSignResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.Net; 14 | using System.Net.Http.Headers; 15 | 16 | namespace DocuSign.Rooms.Client 17 | { 18 | public class DocuSignResponse 19 | { 20 | readonly HttpStatusCode statusCode = HttpStatusCode.OK; 21 | readonly IDictionary headers = null; 22 | readonly string errorMessage = string.Empty; 23 | readonly string contentType = string.Empty; 24 | readonly byte[] rawBytes = null; 25 | readonly Exception exception = null; 26 | 27 | public byte[] RawBytes => rawBytes; 28 | 29 | public string ContentType => contentType; 30 | 31 | public HttpStatusCode StatusCode => statusCode; 32 | 33 | public string Content => rawBytes != null ? System.Text.Encoding.UTF8.GetString(rawBytes) : null; 34 | 35 | public string ErrorMessage => errorMessage; 36 | 37 | public IDictionary Headers => headers; 38 | 39 | public Exception Exception => exception; 40 | 41 | public DocuSignResponse(HttpStatusCode _statusCode, IDictionary _headers, byte[] _rawBytes, string _contentType) 42 | { 43 | statusCode = _statusCode; 44 | headers = _headers; 45 | rawBytes = _rawBytes; 46 | contentType = _contentType; 47 | } 48 | 49 | public DocuSignResponse(Exception _exception, HttpStatusCode _statusCode = HttpStatusCode.InternalServerError) 50 | { 51 | exception = _exception; 52 | errorMessage = _exception?.Message ?? string.Empty; 53 | statusCode = _statusCode; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/MemberSortingOption.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines MemberSortingOption 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum MemberSortingOption 31 | { 32 | 33 | /// 34 | /// Enum FirstNameAsc for value: FirstNameAsc 35 | /// 36 | [EnumMember(Value = "FirstNameAsc")] 37 | FirstNameAsc = 1, 38 | 39 | /// 40 | /// Enum LastNameAsc for value: LastNameAsc 41 | /// 42 | [EnumMember(Value = "LastNameAsc")] 43 | LastNameAsc = 2, 44 | 45 | /// 46 | /// Enum EmailAsc for value: EmailAsc 47 | /// 48 | [EnumMember(Value = "EmailAsc")] 49 | EmailAsc = 3, 50 | 51 | /// 52 | /// Enum FirstNameDesc for value: FirstNameDesc 53 | /// 54 | [EnumMember(Value = "FirstNameDesc")] 55 | FirstNameDesc = 4, 56 | 57 | /// 58 | /// Enum LastNameDesc for value: LastNameDesc 59 | /// 60 | [EnumMember(Value = "LastNameDesc")] 61 | LastNameDesc = 5, 62 | 63 | /// 64 | /// Enum EmailDesc for value: EmailDesc 65 | /// 66 | [EnumMember(Value = "EmailDesc")] 67 | EmailDesc = 6 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/RoomUserSortingOption.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Defines RoomUserSortingOption 26 | /// 27 | 28 | [JsonConverter(typeof(StringEnumConverter))] 29 | 30 | public enum RoomUserSortingOption 31 | { 32 | 33 | /// 34 | /// Enum FirstNameAsc for value: FirstNameAsc 35 | /// 36 | [EnumMember(Value = "FirstNameAsc")] 37 | FirstNameAsc = 1, 38 | 39 | /// 40 | /// Enum LastNameAsc for value: LastNameAsc 41 | /// 42 | [EnumMember(Value = "LastNameAsc")] 43 | LastNameAsc = 2, 44 | 45 | /// 46 | /// Enum EmailAsc for value: EmailAsc 47 | /// 48 | [EnumMember(Value = "EmailAsc")] 49 | EmailAsc = 3, 50 | 51 | /// 52 | /// Enum FirstNameDesc for value: FirstNameDesc 53 | /// 54 | [EnumMember(Value = "FirstNameDesc")] 55 | FirstNameDesc = 4, 56 | 57 | /// 58 | /// Enum LastNameDesc for value: LastNameDesc 59 | /// 60 | [EnumMember(Value = "LastNameDesc")] 61 | LastNameDesc = 5, 62 | 63 | /// 64 | /// Enum EmailDesc for value: EmailDesc 65 | /// 66 | [EnumMember(Value = "EmailDesc")] 67 | EmailDesc = 6 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /test/SdkTests/JwtAuthUnitTests.cs: -------------------------------------------------------------------------------- 1 | using DocuSign.Rooms.Api; 2 | using DocuSign.Rooms.Client; 3 | using DocuSign.Rooms.Client.Auth; 4 | using DocuSign.Rooms.Model; 5 | using Microsoft.VisualStudio.TestTools.UnitTesting; 6 | using System; 7 | using System.Collections.Generic; 8 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert; 9 | 10 | namespace SdkTests 11 | { 12 | [TestClass] 13 | public class JwtAuthUnitTests 14 | { 15 | TestConfig testConfig = new TestConfig(); 16 | [TestInitialize()] 17 | [TestMethod] 18 | public void JwtLoginTest() 19 | { 20 | testConfig.ApiClient = new DocuSignClient(testConfig.Host, testConfig.OAuthBasePath, null); 21 | 22 | Assert.IsNotNull(testConfig.PrivateKey); 23 | 24 | byte[] privateKeyStream = Convert.FromBase64String(testConfig.PrivateKey); 25 | 26 | var scopes = new List(); 27 | scopes.Add("dtr.company.write"); 28 | scopes.Add("dtr.company.read"); 29 | scopes.Add("dtr.rooms.write"); 30 | scopes.Add("dtr.rooms.read"); 31 | scopes.Add("signature"); 32 | scopes.Add("impersonation"); 33 | 34 | OAuth.OAuthToken tokenInfo = testConfig.ApiClient.RequestJWTUserToken(testConfig.IntegratorKey, testConfig.UserId, testConfig.OAuthBasePath, privateKeyStream, testConfig.ExpiresInHours, scopes); 35 | 36 | // the authentication api uses the apiClient (and X-DocuSign-Authentication header) that are set in Configuration object 37 | OAuth.UserInfo userInfo = testConfig.ApiClient.GetUserInfo(tokenInfo.access_token); 38 | 39 | Assert.IsNotNull(userInfo); 40 | Assert.IsNotNull(userInfo.Accounts); 41 | 42 | foreach (var item in userInfo.Accounts) 43 | { 44 | if (item.IsDefault == "true") 45 | { 46 | testConfig.AccountId = item.AccountId; 47 | //testConfig.ApiClient.SetBasePath(item.BaseUri + "/restapi"); 48 | break; 49 | } 50 | } 51 | 52 | Assert.IsNotNull(testConfig.AccountId); 53 | } 54 | 55 | [TestMethod] 56 | public void JwtGetRoomsTest() 57 | { 58 | // |EnvelopesApi| contains methods related to creating and sending Envelopes (aka signature requests) 59 | RoomsApi roomsApi = new RoomsApi(testConfig.ApiClient); 60 | RoomSummaryList rooms = roomsApi.GetRooms(testConfig.AccountId, new RoomsApi.GetRoomsOptions()); 61 | 62 | Assert.IsNotNull(rooms); 63 | Assert.IsNotNull(rooms.Rooms); 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /test/SdkNetCoreTests/JwtAuthNetCoreTests.cs: -------------------------------------------------------------------------------- 1 | using DocuSign.Rooms.Api; 2 | using DocuSign.Rooms.Client; 3 | using DocuSign.Rooms.Client.Auth; 4 | using DocuSign.Rooms.Model; 5 | using Microsoft.VisualStudio.TestTools.UnitTesting; 6 | using System; 7 | using System.Collections.Generic; 8 | using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert; 9 | 10 | namespace SdkNetCoreTests 11 | { 12 | [TestClass] 13 | public class JwtAuthNetCoreTests 14 | { 15 | TestConfig testConfig = new TestConfig(); 16 | [TestInitialize()] 17 | [TestMethod] 18 | public void JwtLoginTest() 19 | { 20 | testConfig.ApiClient = new DocuSignClient(testConfig.Host, testConfig.OAuthBasePath, null); 21 | 22 | Assert.IsNotNull(testConfig.PrivateKey); 23 | 24 | byte[] privateKeyStream = Convert.FromBase64String(testConfig.PrivateKey); 25 | 26 | var scopes = new List(); 27 | scopes.Add("dtr.company.write"); 28 | scopes.Add("dtr.company.read"); 29 | scopes.Add("dtr.rooms.write"); 30 | scopes.Add("dtr.rooms.read"); 31 | scopes.Add("signature"); 32 | scopes.Add("impersonation"); 33 | 34 | OAuth.OAuthToken tokenInfo = testConfig.ApiClient.RequestJWTUserToken(testConfig.IntegratorKey, testConfig.UserId, testConfig.OAuthBasePath, privateKeyStream, testConfig.ExpiresInHours, scopes); 35 | 36 | // the authentication api uses the apiClient (and X-DocuSign-Authentication header) that are set in Configuration object 37 | OAuth.UserInfo userInfo = testConfig.ApiClient.GetUserInfo(tokenInfo.access_token); 38 | 39 | Assert.IsNotNull(userInfo); 40 | Assert.IsNotNull(userInfo.Accounts); 41 | 42 | foreach (var item in userInfo.Accounts) 43 | { 44 | if (item.IsDefault == "true") 45 | { 46 | testConfig.AccountId = item.AccountId; 47 | //testConfig.ApiClient.SetBasePath(item.BaseUri + "/restapi"); 48 | break; 49 | } 50 | } 51 | 52 | Assert.IsNotNull(testConfig.AccountId); 53 | } 54 | 55 | [TestMethod] 56 | public void JwtGetRoomsTest() 57 | { 58 | // |EnvelopesApi| contains methods related to creating and sending Envelopes (aka signature requests) 59 | RoomsApi roomsApi = new RoomsApi(testConfig.ApiClient); 60 | RoomSummaryList rooms = roomsApi.GetRooms(testConfig.AccountId, new RoomsApi.GetRoomsOptions()); 61 | 62 | Assert.IsNotNull(rooms); 63 | Assert.IsNotNull(rooms.Rooms); 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/DocuSign.Rooms.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net462;netstandard2.0 5 | true 6 | DocuSign.Rooms 7 | The Docusign NuGet package makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-rooms-csharp-client repository. 8 | DocuSign Inc. 9 | DocuSign 10 | Copyright © Docusign 2024 11 | DocuSign.Rooms 12 | DocuSign 13 | Library 14 | $(NoWarn);CS1591 15 | Properties 16 | DocuSign.Rooms 17 | DocuSign.Rooms 18 | en-US 19 | 2.0.2 20 | 21 | true 22 | true 23 | Docusign.Rooms;REST;Rooms;docusign;Rooms;api 24 | icon.png 25 | https://github.com/docusign/docusign-rooms-csharp-client 26 | https://github.com/docusign/docusign-rooms-csharp-client/blob/master/LICENSE 27 | https://github.com/docusign/docusign-rooms-csharp-client 28 | git 29 | [v2.0.2] - Rooms API v2-1.1.1 - 11/15/2024 30 | 31 | 32 | NET462 33 | 34 | 35 | NETSTANDARD2_0 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/ApiClient.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Net; 13 | using System.Net.Http; 14 | 15 | namespace DocuSign.Rooms.Client 16 | { 17 | /// 18 | /// API client is mainly responsible for making the HTTP call to the API backend. 19 | /// 20 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient instead.", false)] 21 | public class ApiClient : DocuSignClient 22 | { 23 | /// 24 | /// Initializes a new instance of the class 25 | /// with default configuration and base path (https://demo.rooms.docusign.com/restapi). 26 | /// 27 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient() instead.", false)] 28 | public ApiClient() : base() { } 29 | 30 | /// 31 | /// Initializes a new instance of the class 32 | /// with default base path (https://demo.rooms.docusign.com/restapi). 33 | /// 34 | /// An instance of Configuration. 35 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(Configuration) instead.", false)] 36 | public ApiClient(Configuration configuration) : base(configuration) { } 37 | 38 | /// 39 | /// Initializes a new instance of the class 40 | /// with default configuration. 41 | /// 42 | /// The base path. 43 | /// An optional WebProxy instance. 44 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(string, IWebProxy) instead.", false)] 45 | public ApiClient(String apiBase, IWebProxy proxy = null) : base(apiBase, proxy) { } 46 | 47 | /// 48 | /// Initializes a new instance of the class 49 | /// with default configuration. 50 | /// 51 | /// The base path. 52 | /// The oAuth base path. 53 | /// An optional WebProxy instance. 54 | [Obsolete("ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(String, String, WebProxy) instead.", false)] 55 | public ApiClient(String apiBase, String oAuthBase, IWebProxy proxy = null) : base(apiBase, oAuthBase, proxy) { } 56 | } 57 | } -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/IReadableConfiguration.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | 12 | using System.Collections.Generic; 13 | 14 | namespace DocuSign.Rooms.Client 15 | { 16 | /// 17 | /// Represents a readable-only configuration contract. 18 | /// 19 | public interface IReadableConfiguration 20 | { 21 | /// 22 | /// Gets the access token. 23 | /// 24 | /// Access token. 25 | string AccessToken { get; } 26 | 27 | /// 28 | /// Gets the API key. 29 | /// 30 | /// API key. 31 | IDictionary ApiKey { get; } 32 | 33 | /// 34 | /// Gets the API key prefix. 35 | /// 36 | /// API key prefix. 37 | IDictionary ApiKeyPrefix { get; } 38 | 39 | /// 40 | /// Gets the base path. 41 | /// 42 | /// Base path. 43 | string BasePath { get; } 44 | 45 | /// 46 | /// Gets the date time format. 47 | /// 48 | /// Date time foramt. 49 | string DateTimeFormat { get; } 50 | 51 | /// 52 | /// Gets the default header. 53 | /// 54 | /// Default header. 55 | IDictionary DefaultHeader { get; } 56 | 57 | /// 58 | /// Gets the temp folder path. 59 | /// 60 | /// Temp folder path. 61 | string TempFolderPath { get; } 62 | 63 | /// 64 | /// Gets the HTTP connection timeout (in milliseconds) 65 | /// 66 | /// HTTP connection timeout. 67 | int Timeout { get; } 68 | 69 | /// 70 | /// Gets the user agent. 71 | /// 72 | /// User agent. 73 | string UserAgent { get; } 74 | 75 | /// 76 | /// Gets the username. 77 | /// 78 | /// Username. 79 | string Username { get; } 80 | 81 | /// 82 | /// Gets the password. 83 | /// 84 | /// Password. 85 | string Password { get; } 86 | 87 | /// 88 | /// Gets the API key with prefix. 89 | /// 90 | /// API key identifier (authentication scheme). 91 | /// API key with prefix. 92 | string GetApiKeyWithPrefix(string apiKeyIdentifier); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/ApiException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | 12 | using System; 13 | using System.Collections.Generic; 14 | using System.Linq; 15 | 16 | namespace DocuSign.Rooms.Client 17 | { 18 | /// 19 | /// API Exception 20 | /// 21 | public class ApiException : Exception 22 | { 23 | /// 24 | /// Gets or sets the error code (HTTP status code) 25 | /// 26 | /// The error code (HTTP status code). 27 | public int ErrorCode { get; set; } 28 | 29 | /// 30 | /// Gets or sets the error content (body json object) 31 | /// 32 | /// The error content (Http response body). 33 | public dynamic ErrorContent { get; private set; } 34 | 35 | /// 36 | /// Gets or sets the error message 37 | /// 38 | /// The error message. 39 | public string ErrorMessage { get; set; } 40 | 41 | /// 42 | /// Gets or sets the HTTP headers 43 | /// 44 | /// HTTP headers 45 | public IDictionary Headers { get; private set; } 46 | 47 | /// 48 | /// Initializes a new instance of the class. 49 | /// 50 | public ApiException() { } 51 | 52 | /// 53 | /// Initializes a new instance of the class. 54 | /// 55 | /// HTTP status code. 56 | /// Error message. 57 | public ApiException(int errorCode, string message) : base(message) 58 | { 59 | this.ErrorCode = errorCode; 60 | this.ErrorMessage = message; 61 | } 62 | 63 | /// 64 | /// Initializes a new instance of the class. 65 | /// 66 | /// HTTP status code. 67 | /// Error message. 68 | /// Error content. 69 | /// DocuSignResponse object. 70 | public ApiException(int errorCode, string message, dynamic errorContent = null, DocuSignResponse response = null) : base(response.Exception?.Message ?? message, response.Exception?.InnerException) 71 | { 72 | this.ErrorCode = errorCode; 73 | this.ErrorContent = errorContent; 74 | if (response != null && response.Headers != null) 75 | { 76 | this.ErrorMessage = response.ErrorMessage; 77 | this.Headers = response.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()); 78 | } 79 | } 80 | } 81 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # DocuSign Rooms C# Client Changelog 2 | See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes. 3 | 4 | ## [v2.0.2] - Rooms API v2-1.1.1 - 2024-11-15 5 | ### Changed 6 | - Resolved an issue that prevented the use of `RequestJWTApplicationToken` with a production account URL. 7 | - Updated C# SDK dependencies. 8 | - BouncyCastle.Cryptography: Version bumped from 2.3.1 to 2.4.0. 9 | - Microsoft.IdentityModelJsonWebTokens: Version bumped from 7.5.2 to 8.2.0. 10 | - Updated the SDK release version. 11 | 12 | ## [v2.0.1] - Rooms API v2-1.1.1 - 2024-11-07 13 | ### Changed 14 | - Fixed Deadlock issue with UI Apps (E.g. WinForms). 15 | - Fixed deserialization issue of text/csv type response 16 | - Removed the staging base path and OAuth path constant. 17 | - Updated the SDK release version. 18 | 19 | ## [v2.0.0] - Rooms API v2-1.1.1 - 2024-07-30 20 | ### Changed 21 | - Added support for version v2-1.1.1 of the DocuSign Rooms API. 22 | - Updated the SDK release version. 23 | 24 | ## [v2.0.0-rc3] - Rooms API v2-1.1.1 - 2024-05-20 25 | ### Changed 26 | - Updated C# SDK dependencies. 27 | - BouncyCastle.Cryptography: Version bumped from 2.3.0 to 2.3.1. 28 | - Microsoft.IdentityModel.JsonWebTokens: Version bumped from 7.5.1 to 7.5.2. 29 | ## [v2.0.0-rc2] - Rooms API v2-1.1.1 - 2024-04-29 30 | ### Breaking Changes 31 | - Updated from System.IdentityModel.Tokens.Jwt to Microsoft.IdentityModel.JsonWebTokens for token handling. 32 | ## [v2.0.0-rc1] - Rooms API v2-1.1.1 - 2024-04-10 33 | ### Breaking Changes 34 | - Updated C# SDK dependencies. 35 | - Microsoft.CSharp: Version bumped from 4.5.0 to 4.7.0. 36 | - Newtonsoft.Json: Version bumped from 13.0.1 to 13.0.3. 37 | - System.ComponentModel.Annotations: Version bumped from 4.5.0 to 5.0.0. 38 | - Microsoft.IdentityModel.Protocols: Version bumped from 5.4.0 to 7.3.1. 39 | - System.IdentityModel.Tokens.Jwt: Version bumped from 5.4.0 to 7.3.1. 40 | - BouncyCastle.Cryptography: Version bumped from 2.2.1 to 2.3.0. 41 | ### Changed 42 | - Updated the SDK release version. 43 | 44 | ## [v1.4.2] - Rooms API v2-1.1.1 - 2023-12-15 45 | ### Changed 46 | - Updated the SDK release version. 47 | - Removed tracked files which are now present in .gitignore. 48 | 49 | ## [v1.4.1] - Rooms API v2-1.1.1 - 2023-05-10 50 | ### Changed 51 | - Removed support for .NET Framework 4.5.2. Miminum requirement is now .NET Framework 4.6.2 52 | - Removed [BouncyCastle.Crypto](https://www.nuget.org/packages/BouncyCastle) and [Portable.BouncyCastle](https://www.nuget.org/packages/Portable.BouncyCastle) dependencies as they've been deprecated and added [BouncyCastle.Cryptography](https://www.nuget.org/packages/BouncyCastle.Cryptography) which is the recommended replacement and is being maintained. 53 | - Added support for version v2-1.1.1 of the DocuSign Rooms API. 54 | - Updated the SDK release version. 55 | 56 | ## [v1.3.0] - Rooms API v2-1.1.0 - 2023-01-30 57 | ### Changed 58 | - Added support for version v2-1.1.0 of the DocuSign Rooms API. 59 | - Updated the SDK release version. 60 | 61 | ## [1.2.0-rc] - Rooms API v2-1.0.9 - 2021-10-06 62 | ### Changed 63 | - Added support for version v2-1.0.9 of the DocuSign Rooms API. 64 | - Updated the SDK release version. 65 | 66 | 67 | ## [v1.1.0] - DocuSign Rooms API v2 - 03/25/2021 68 | ### Changed 69 | - Updated the SDK release version 70 | 71 | ## [v1.1.0-rc] - DocuSign Rooms API v2 - 12/14/2020 72 | ### Changed 73 | - Added support for version v2-1.0.8 of the DocuSign eSignature API. 74 | - Updated the SDK release version 75 | 76 | ## [v1.0.0] - DocuSign Rooms API v2 - 10/15/2020 77 | ### Changed 78 | - First GA version of Rooms API. 79 | -------------------------------------------------------------------------------- /test/SdkTests/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Ref: https://gist.github.com/kmorcinek/2710267 2 | # Download this file using PowerShell v3 under Windows with the following comand 3 | # Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore 4 | 5 | # User-specific files 6 | *.suo 7 | *.user 8 | *.sln.docstates 9 | *.vs 10 | *.vscode 11 | ./nuget 12 | 13 | # Build results 14 | 15 | [Dd]ebug/ 16 | [Rr]elease/ 17 | x64/ 18 | build/ 19 | [Bb]in/ 20 | [Oo]bj/ 21 | 22 | # NuGet Packages 23 | *.nupkg 24 | # The packages folder can be ignored because of Package Restore 25 | **/packages/* 26 | # except build/, which is used as an MSBuild target. 27 | !**/packages/build/ 28 | # Uncomment if necessary however generally it will be regenerated when needed 29 | #!**/packages/repositories.config 30 | 31 | # MSTest test Results 32 | [Tt]est[Rr]esult*/ 33 | [Bb]uild[Ll]og.* 34 | 35 | *_i.c 36 | *_p.c 37 | *.ilk 38 | *.meta 39 | *.obj 40 | *.pch 41 | *.pdb 42 | *.pgc 43 | *.pgd 44 | *.rsp 45 | *.sbr 46 | *.tlb 47 | *.tli 48 | *.tlh 49 | *.tmp 50 | *.tmp_proj 51 | *.log 52 | *.vspscc 53 | *.vssscc 54 | .builds 55 | *.pidb 56 | *.log 57 | *.scc 58 | 59 | # OS generated files # 60 | .DS_Store* 61 | ehthumbs.db 62 | Icon? 63 | Thumbs.db 64 | 65 | # Visual C++ cache files 66 | ipch/ 67 | *.aps 68 | *.ncb 69 | *.opensdf 70 | *.sdf 71 | *.cachefile 72 | 73 | # Visual Studio profiler 74 | *.psess 75 | *.vsp 76 | *.vspx 77 | 78 | # Guidance Automation Toolkit 79 | *.gpState 80 | 81 | # ReSharper is a .NET coding add-in 82 | _ReSharper*/ 83 | *.[Rr]e[Ss]harper 84 | 85 | # TeamCity is a build add-in 86 | _TeamCity* 87 | 88 | # DotCover is a Code Coverage Tool 89 | *.dotCover 90 | 91 | # NCrunch 92 | *.ncrunch* 93 | .*crunch*.local.xml 94 | 95 | # Installshield output folder 96 | [Ee]xpress/ 97 | 98 | # DocProject is a documentation generator add-in 99 | DocProject/buildhelp/ 100 | DocProject/Help/*.HxT 101 | DocProject/Help/*.HxC 102 | DocProject/Help/*.hhc 103 | DocProject/Help/*.hhk 104 | DocProject/Help/*.hhp 105 | DocProject/Help/Html2 106 | DocProject/Help/html 107 | 108 | # Click-Once directory 109 | publish/ 110 | 111 | # Publish Web Output 112 | *.Publish.xml 113 | 114 | # Windows Azure Build Output 115 | csx 116 | *.build.csdef 117 | 118 | # Windows Store app package directory 119 | AppPackages/ 120 | 121 | # Others 122 | sql/ 123 | *.Cache 124 | ClientBin/ 125 | [Ss]tyle[Cc]op.* 126 | ~$* 127 | *~ 128 | *.dbmdl 129 | *.[Pp]ublish.xml 130 | *.pfx 131 | *.publishsettings 132 | modulesbin/ 133 | tempbin/ 134 | 135 | # EPiServer Site file (VPP) 136 | AppData/ 137 | 138 | # RIA/Silverlight projects 139 | Generated_Code/ 140 | 141 | # Backup & report files from converting an old project file to a newer 142 | # Visual Studio version. Backup files are not needed, because we have git ;-) 143 | _UpgradeReport_Files/ 144 | Backup*/ 145 | UpgradeLog*.XML 146 | UpgradeLog*.htm 147 | 148 | # vim 149 | *.txt~ 150 | *.swp 151 | *.swo 152 | 153 | # svn 154 | .svn 155 | 156 | # SQL Server files 157 | **/App_Data/*.mdf 158 | **/App_Data/*.ldf 159 | **/App_Data/*.sdf 160 | 161 | 162 | #LightSwitch generated files 163 | GeneratedArtifacts/ 164 | _Pvt_Extensions/ 165 | ModelManifest.xml 166 | 167 | # ========================= 168 | # Windows detritus 169 | # ========================= 170 | 171 | # Windows image file caches 172 | Thumbs.db 173 | ehthumbs.db 174 | 175 | # Folder config file 176 | Desktop.ini 177 | 178 | # Recycle Bin used on file shares 179 | $RECYCLE.BIN/ 180 | 181 | # Mac desktop service store files 182 | .DS_Store 183 | 184 | # SASS Compiler cache 185 | .sass-cache 186 | 187 | # Visual Studio 2014 CTP 188 | **/*.sln.ide 189 | 190 | 191 | # ========================= 192 | # Project Specific Files 193 | # ========================= 194 | 195 | **/DocuSign.Maestro/packages.config 196 | sdk/.swagger-codegen-ignore 197 | sdk/build.sh 198 | sdk/.travis.yml 199 | sdk/git_push.sh 200 | sdk/build.bat 201 | **/*.pubxml 202 | *.snk -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/RoomPicture.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// RoomPicture 26 | /// 27 | [DataContract] 28 | public partial class RoomPicture : IEquatable, IValidatableObject 29 | { 30 | public RoomPicture() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Url. 39 | public RoomPicture(string Url = default(string)) 40 | { 41 | this.Url = Url; 42 | } 43 | 44 | /// 45 | /// Gets or Sets Url 46 | /// 47 | [DataMember(Name="url", EmitDefaultValue=false)] 48 | public string Url { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class RoomPicture {\n"); 57 | sb.Append(" Url: ").Append(Url).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as RoomPicture); 80 | } 81 | 82 | /// 83 | /// Returns true if RoomPicture instances are equal 84 | /// 85 | /// Instance of RoomPicture to be compared 86 | /// Boolean 87 | public bool Equals(RoomPicture other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.Url == other.Url || 96 | this.Url != null && 97 | this.Url.Equals(other.Url) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.Url != null) 113 | hash = hash * 59 + this.Url.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/FieldData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// FieldData 26 | /// 27 | [DataContract] 28 | public partial class FieldData : IEquatable, IValidatableObject 29 | { 30 | public FieldData() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Data. 39 | public FieldData(Dictionary Data = default(Dictionary)) 40 | { 41 | this.Data = Data; 42 | } 43 | 44 | /// 45 | /// Gets or Sets Data 46 | /// 47 | [DataMember(Name="data", EmitDefaultValue=false)] 48 | public Dictionary Data { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class FieldData {\n"); 57 | sb.Append(" Data: ").Append(Data).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as FieldData); 80 | } 81 | 82 | /// 83 | /// Returns true if FieldData instances are equal 84 | /// 85 | /// Instance of FieldData to be compared 86 | /// Boolean 87 | public bool Equals(FieldData other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.Data == other.Data || 96 | this.Data != null && 97 | this.Data.SequenceEqual(other.Data) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.Data != null) 113 | hash = hash * 59 + this.Data.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalStates.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalStates 26 | /// 27 | [DataContract] 28 | public partial class GlobalStates : IEquatable, IValidatableObject 29 | { 30 | public GlobalStates() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// States. 39 | public GlobalStates(List States = default(List)) 40 | { 41 | this.States = States; 42 | } 43 | 44 | /// 45 | /// Gets or Sets States 46 | /// 47 | [DataMember(Name="states", EmitDefaultValue=false)] 48 | public List States { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalStates {\n"); 57 | sb.Append(" States: ").Append(States).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalStates); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalStates instances are equal 84 | /// 85 | /// Instance of GlobalStates to be compared 86 | /// Boolean 87 | public bool Equals(GlobalStates other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.States == other.States || 96 | this.States != null && 97 | this.States.SequenceEqual(other.States) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.States != null) 113 | hash = hash * 59 + this.States.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/ExternalFormFillSession.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// ExternalFormFillSession 26 | /// 27 | [DataContract] 28 | public partial class ExternalFormFillSession : IEquatable, IValidatableObject 29 | { 30 | public ExternalFormFillSession() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Url. 39 | public ExternalFormFillSession(string Url = default(string)) 40 | { 41 | this.Url = Url; 42 | } 43 | 44 | /// 45 | /// Gets or Sets Url 46 | /// 47 | [DataMember(Name="url", EmitDefaultValue=false)] 48 | public string Url { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class ExternalFormFillSession {\n"); 57 | sb.Append(" Url: ").Append(Url).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as ExternalFormFillSession); 80 | } 81 | 82 | /// 83 | /// Returns true if ExternalFormFillSession instances are equal 84 | /// 85 | /// Instance of ExternalFormFillSession to be compared 86 | /// Boolean 87 | public bool Equals(ExternalFormFillSession other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.Url == other.Url || 96 | this.Url != null && 97 | this.Url.Equals(other.Url) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.Url != null) 113 | hash = hash * 59 + this.Url.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Client/DocuSignRequest.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.Linq; 14 | using System.Net.Http; 15 | using System.Text; 16 | using System.Threading.Tasks; 17 | 18 | namespace DocuSign.Rooms.Client 19 | { 20 | public class FileParameter 21 | { 22 | public FileParameter(string name, string fileName, string contentDisposition, byte[] content) 23 | { 24 | Name = name; 25 | FileName = fileName; 26 | ContentDisposition = contentDisposition; 27 | Content = content; 28 | } 29 | 30 | public string Name { get; set; } 31 | 32 | public string FileName { get; set; } 33 | 34 | public string ContentDisposition { get; set; } 35 | 36 | public byte[] Content { get; set; } 37 | 38 | } 39 | 40 | public class DocuSignRequest 41 | { 42 | public HttpMethod Method { get; } 43 | 44 | public string Url { get; } 45 | 46 | public Object BodyContent { get; set; } 47 | 48 | public String ContentType { get; set; } 49 | 50 | public String ContentDisposition { get; set; } 51 | 52 | /// 53 | /// Query parameters 54 | /// 55 | public List> QueryParams { get; private set; } 56 | 57 | /// 58 | /// Post parameters 59 | /// 60 | public List> PostParams { get; private set; } 61 | 62 | /// 63 | /// Header parameters 64 | /// 65 | public List> HeaderParams { get; private set; } 66 | 67 | /// 68 | /// Path parameters 69 | /// 70 | public List> PathParams { get; private set; } 71 | 72 | public List FileParams { get; private set; } 73 | 74 | public DocuSignRequest(HttpMethod method, string path) : this(method, path, null, null, null, null, null, null, null, null) { } 75 | 76 | public DocuSignRequest(HttpMethod method, string path, string contentType) : this(method, path, null, null, null, null, null, null, contentType, null) { } 77 | 78 | public DocuSignRequest(HttpMethod method, string path, List> queryParams = null, Object bodyContent = null, 79 | List> headerParams = null, List> postParams = null, List> pathParams = null, 80 | List fileParams = null, string contentType = null, string contentDisposition = null) 81 | { 82 | Method = method; 83 | 84 | Url = path; 85 | ContentType = contentType; 86 | ContentDisposition = contentDisposition; 87 | BodyContent = bodyContent; 88 | QueryParams = queryParams ?? new List>(); 89 | PostParams = postParams ?? new List>(); 90 | HeaderParams = headerParams ?? new List>(); 91 | PathParams = pathParams ?? new List>(); 92 | FileParams = fileParams ?? new List(); 93 | } 94 | 95 | public void AddHeaderParameter(string name, string value) => HeaderParams.Add(new KeyValuePair(name, value)); 96 | 97 | public void AddPostParameter(string name, string value) => PostParams.Add(new KeyValuePair(name, value)); 98 | 99 | public void AddQueryParameter(string name, string value) => QueryParams.Add(new KeyValuePair(name, value)); 100 | 101 | public void AddPathParameter(string name, string value) => PathParams.Add(new KeyValuePair(name, value)); 102 | 103 | public void AddFileParameter(string name, string fileName, string contentDisposition, byte[] content) => FileParams.Add(new FileParameter(name, fileName, contentDisposition, content)); 104 | } 105 | } -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/Envelope.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// Envelope 26 | /// 27 | [DataContract] 28 | public partial class Envelope : IEquatable, IValidatableObject 29 | { 30 | public Envelope() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// ESignEnvelopeId. 39 | public Envelope(string ESignEnvelopeId = default(string)) 40 | { 41 | this.ESignEnvelopeId = ESignEnvelopeId; 42 | } 43 | 44 | /// 45 | /// Gets or Sets ESignEnvelopeId 46 | /// 47 | [DataMember(Name="eSignEnvelopeId", EmitDefaultValue=false)] 48 | public string ESignEnvelopeId { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class Envelope {\n"); 57 | sb.Append(" ESignEnvelopeId: ").Append(ESignEnvelopeId).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as Envelope); 80 | } 81 | 82 | /// 83 | /// Returns true if Envelope instances are equal 84 | /// 85 | /// Instance of Envelope to be compared 86 | /// Boolean 87 | public bool Equals(Envelope other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.ESignEnvelopeId == other.ESignEnvelopeId || 96 | this.ESignEnvelopeId != null && 97 | this.ESignEnvelopeId.Equals(other.ESignEnvelopeId) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.ESignEnvelopeId != null) 113 | hash = hash * 59 + this.ESignEnvelopeId.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/FieldDataForCreate.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// FieldDataForCreate 26 | /// 27 | [DataContract] 28 | public partial class FieldDataForCreate : IEquatable, IValidatableObject 29 | { 30 | public FieldDataForCreate() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Data. 39 | public FieldDataForCreate(Dictionary Data = default(Dictionary)) 40 | { 41 | this.Data = Data; 42 | } 43 | 44 | /// 45 | /// Gets or Sets Data 46 | /// 47 | [DataMember(Name="data", EmitDefaultValue=false)] 48 | public Dictionary Data { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class FieldDataForCreate {\n"); 57 | sb.Append(" Data: ").Append(Data).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as FieldDataForCreate); 80 | } 81 | 82 | /// 83 | /// Returns true if FieldDataForCreate instances are equal 84 | /// 85 | /// Instance of FieldDataForCreate to be compared 86 | /// Boolean 87 | public bool Equals(FieldDataForCreate other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.Data == other.Data || 96 | this.Data != null && 97 | this.Data.SequenceEqual(other.Data) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.Data != null) 113 | hash = hash * 59 + this.Data.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/FieldDataForUpdate.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// FieldDataForUpdate 26 | /// 27 | [DataContract] 28 | public partial class FieldDataForUpdate : IEquatable, IValidatableObject 29 | { 30 | public FieldDataForUpdate() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Data. 39 | public FieldDataForUpdate(Dictionary Data = default(Dictionary)) 40 | { 41 | this.Data = Data; 42 | } 43 | 44 | /// 45 | /// Gets or Sets Data 46 | /// 47 | [DataMember(Name="data", EmitDefaultValue=false)] 48 | public Dictionary Data { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class FieldDataForUpdate {\n"); 57 | sb.Append(" Data: ").Append(Data).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as FieldDataForUpdate); 80 | } 81 | 82 | /// 83 | /// Returns true if FieldDataForUpdate instances are equal 84 | /// 85 | /// Instance of FieldDataForUpdate to be compared 86 | /// Boolean 87 | public bool Equals(FieldDataForUpdate other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.Data == other.Data || 96 | this.Data != null && 97 | this.Data.SequenceEqual(other.Data) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.Data != null) 113 | hash = hash * 59 + this.Data.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalCountries.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalCountries 26 | /// 27 | [DataContract] 28 | public partial class GlobalCountries : IEquatable, IValidatableObject 29 | { 30 | public GlobalCountries() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Countries. 39 | public GlobalCountries(List Countries = default(List)) 40 | { 41 | this.Countries = Countries; 42 | } 43 | 44 | /// 45 | /// Gets or Sets Countries 46 | /// 47 | [DataMember(Name="countries", EmitDefaultValue=false)] 48 | public List Countries { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalCountries {\n"); 57 | sb.Append(" Countries: ").Append(Countries).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalCountries); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalCountries instances are equal 84 | /// 85 | /// Instance of GlobalCountries to be compared 86 | /// Boolean 87 | public bool Equals(GlobalCountries other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.Countries == other.Countries || 96 | this.Countries != null && 97 | this.Countries.SequenceEqual(other.Countries) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.Countries != null) 113 | hash = hash * 59 + this.Countries.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalTimeZones.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalTimeZones 26 | /// 27 | [DataContract] 28 | public partial class GlobalTimeZones : IEquatable, IValidatableObject 29 | { 30 | public GlobalTimeZones() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// TimeZones. 39 | public GlobalTimeZones(List TimeZones = default(List)) 40 | { 41 | this.TimeZones = TimeZones; 42 | } 43 | 44 | /// 45 | /// Gets or Sets TimeZones 46 | /// 47 | [DataMember(Name="timeZones", EmitDefaultValue=false)] 48 | public List TimeZones { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalTimeZones {\n"); 57 | sb.Append(" TimeZones: ").Append(TimeZones).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalTimeZones); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalTimeZones instances are equal 84 | /// 85 | /// Instance of GlobalTimeZones to be compared 86 | /// Boolean 87 | public bool Equals(GlobalTimeZones other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.TimeZones == other.TimeZones || 96 | this.TimeZones != null && 97 | this.TimeZones.SequenceEqual(other.TimeZones) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.TimeZones != null) 113 | hash = hash * 59 + this.TimeZones.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/ESignPermissionProfileList.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// ESignPermissionProfileList 26 | /// 27 | [DataContract] 28 | public partial class ESignPermissionProfileList : IEquatable, IValidatableObject 29 | { 30 | 31 | /// 32 | /// Initializes a new instance of the class. 33 | /// 34 | [JsonConstructorAttribute] 35 | public ESignPermissionProfileList() 36 | { 37 | } 38 | 39 | /// 40 | /// Gets or Sets PermissionProfiles 41 | /// 42 | [DataMember(Name="permissionProfiles", EmitDefaultValue=false)] 43 | public List PermissionProfiles { get; private set; } 44 | /// 45 | /// Returns the string presentation of the object 46 | /// 47 | /// String presentation of the object 48 | public override string ToString() 49 | { 50 | var sb = new StringBuilder(); 51 | sb.Append("class ESignPermissionProfileList {\n"); 52 | sb.Append(" PermissionProfiles: ").Append(PermissionProfiles).Append("\n"); 53 | sb.Append("}\n"); 54 | return sb.ToString(); 55 | } 56 | 57 | /// 58 | /// Returns the JSON string presentation of the object 59 | /// 60 | /// JSON string presentation of the object 61 | public string ToJson() 62 | { 63 | return JsonConvert.SerializeObject(this, Formatting.Indented); 64 | } 65 | 66 | /// 67 | /// Returns true if objects are equal 68 | /// 69 | /// Object to be compared 70 | /// Boolean 71 | public override bool Equals(object obj) 72 | { 73 | // credit: http://stackoverflow.com/a/10454552/677735 74 | return this.Equals(obj as ESignPermissionProfileList); 75 | } 76 | 77 | /// 78 | /// Returns true if ESignPermissionProfileList instances are equal 79 | /// 80 | /// Instance of ESignPermissionProfileList to be compared 81 | /// Boolean 82 | public bool Equals(ESignPermissionProfileList other) 83 | { 84 | // credit: http://stackoverflow.com/a/10454552/677735 85 | if (other == null) 86 | return false; 87 | 88 | return 89 | ( 90 | this.PermissionProfiles == other.PermissionProfiles || 91 | this.PermissionProfiles != null && 92 | this.PermissionProfiles.SequenceEqual(other.PermissionProfiles) 93 | ); 94 | } 95 | 96 | /// 97 | /// Gets the hash code 98 | /// 99 | /// Hash code 100 | public override int GetHashCode() 101 | { 102 | // credit: http://stackoverflow.com/a/263416/677735 103 | unchecked // Overflow is fine, just wrap 104 | { 105 | int hash = 41; 106 | // Suitable nullity checks etc, of course :) 107 | if (this.PermissionProfiles != null) 108 | hash = hash * 59 + this.PermissionProfiles.GetHashCode(); 109 | return hash; 110 | } 111 | } 112 | 113 | public IEnumerable Validate(ValidationContext validationContext) 114 | { 115 | yield break; 116 | } 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalCurrencies.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalCurrencies 26 | /// 27 | [DataContract] 28 | public partial class GlobalCurrencies : IEquatable, IValidatableObject 29 | { 30 | public GlobalCurrencies() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Currencies. 39 | public GlobalCurrencies(List Currencies = default(List)) 40 | { 41 | this.Currencies = Currencies; 42 | } 43 | 44 | /// 45 | /// Gets or Sets Currencies 46 | /// 47 | [DataMember(Name="currencies", EmitDefaultValue=false)] 48 | public List Currencies { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalCurrencies {\n"); 57 | sb.Append(" Currencies: ").Append(Currencies).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalCurrencies); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalCurrencies instances are equal 84 | /// 85 | /// Instance of GlobalCurrencies to be compared 86 | /// Boolean 87 | public bool Equals(GlobalCurrencies other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.Currencies == other.Currencies || 96 | this.Currencies != null && 97 | this.Currencies.SequenceEqual(other.Currencies) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.Currencies != null) 113 | hash = hash * 59 + this.Currencies.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalTaskStatuses.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalTaskStatuses 26 | /// 27 | [DataContract] 28 | public partial class GlobalTaskStatuses : IEquatable, IValidatableObject 29 | { 30 | public GlobalTaskStatuses() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// TaskStatuses. 39 | public GlobalTaskStatuses(List TaskStatuses = default(List)) 40 | { 41 | this.TaskStatuses = TaskStatuses; 42 | } 43 | 44 | /// 45 | /// Gets or Sets TaskStatuses 46 | /// 47 | [DataMember(Name="taskStatuses", EmitDefaultValue=false)] 48 | public List TaskStatuses { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalTaskStatuses {\n"); 57 | sb.Append(" TaskStatuses: ").Append(TaskStatuses).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalTaskStatuses); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalTaskStatuses instances are equal 84 | /// 85 | /// Instance of GlobalTaskStatuses to be compared 86 | /// Boolean 87 | public bool Equals(GlobalTaskStatuses other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.TaskStatuses == other.TaskStatuses || 96 | this.TaskStatuses != null && 97 | this.TaskStatuses.SequenceEqual(other.TaskStatuses) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.TaskStatuses != null) 113 | hash = hash * 59 + this.TaskStatuses.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalContactSides.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalContactSides 26 | /// 27 | [DataContract] 28 | public partial class GlobalContactSides : IEquatable, IValidatableObject 29 | { 30 | public GlobalContactSides() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// ContactSides. 39 | public GlobalContactSides(List ContactSides = default(List)) 40 | { 41 | this.ContactSides = ContactSides; 42 | } 43 | 44 | /// 45 | /// Gets or Sets ContactSides 46 | /// 47 | [DataMember(Name="contactSides", EmitDefaultValue=false)] 48 | public List ContactSides { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalContactSides {\n"); 57 | sb.Append(" ContactSides: ").Append(ContactSides).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalContactSides); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalContactSides instances are equal 84 | /// 85 | /// Instance of GlobalContactSides to be compared 86 | /// Boolean 87 | public bool Equals(GlobalContactSides other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.ContactSides == other.ContactSides || 96 | this.ContactSides != null && 97 | this.ContactSides.SequenceEqual(other.ContactSides) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.ContactSides != null) 113 | hash = hash * 59 + this.ContactSides.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalActivityTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalActivityTypes 26 | /// 27 | [DataContract] 28 | public partial class GlobalActivityTypes : IEquatable, IValidatableObject 29 | { 30 | public GlobalActivityTypes() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// ActivityTypes. 39 | public GlobalActivityTypes(List ActivityTypes = default(List)) 40 | { 41 | this.ActivityTypes = ActivityTypes; 42 | } 43 | 44 | /// 45 | /// Gets or Sets ActivityTypes 46 | /// 47 | [DataMember(Name="activityTypes", EmitDefaultValue=false)] 48 | public List ActivityTypes { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalActivityTypes {\n"); 57 | sb.Append(" ActivityTypes: ").Append(ActivityTypes).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalActivityTypes); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalActivityTypes instances are equal 84 | /// 85 | /// Instance of GlobalActivityTypes to be compared 86 | /// Boolean 87 | public bool Equals(GlobalActivityTypes other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.ActivityTypes == other.ActivityTypes || 96 | this.ActivityTypes != null && 97 | this.ActivityTypes.SequenceEqual(other.ActivityTypes) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.ActivityTypes != null) 113 | hash = hash * 59 + this.ActivityTypes.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalPropertyTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalPropertyTypes 26 | /// 27 | [DataContract] 28 | public partial class GlobalPropertyTypes : IEquatable, IValidatableObject 29 | { 30 | public GlobalPropertyTypes() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// PropertyTypes. 39 | public GlobalPropertyTypes(List PropertyTypes = default(List)) 40 | { 41 | this.PropertyTypes = PropertyTypes; 42 | } 43 | 44 | /// 45 | /// Gets or Sets PropertyTypes 46 | /// 47 | [DataMember(Name="propertyTypes", EmitDefaultValue=false)] 48 | public List PropertyTypes { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalPropertyTypes {\n"); 57 | sb.Append(" PropertyTypes: ").Append(PropertyTypes).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalPropertyTypes); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalPropertyTypes instances are equal 84 | /// 85 | /// Instance of GlobalPropertyTypes to be compared 86 | /// Boolean 87 | public bool Equals(GlobalPropertyTypes other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.PropertyTypes == other.PropertyTypes || 96 | this.PropertyTypes != null && 97 | this.PropertyTypes.SequenceEqual(other.PropertyTypes) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.PropertyTypes != null) 113 | hash = hash * 59 + this.PropertyTypes.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalTaskDateTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalTaskDateTypes 26 | /// 27 | [DataContract] 28 | public partial class GlobalTaskDateTypes : IEquatable, IValidatableObject 29 | { 30 | public GlobalTaskDateTypes() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// TaskDateTypes. 39 | public GlobalTaskDateTypes(List TaskDateTypes = default(List)) 40 | { 41 | this.TaskDateTypes = TaskDateTypes; 42 | } 43 | 44 | /// 45 | /// Gets or Sets TaskDateTypes 46 | /// 47 | [DataMember(Name="taskDateTypes", EmitDefaultValue=false)] 48 | public List TaskDateTypes { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalTaskDateTypes {\n"); 57 | sb.Append(" TaskDateTypes: ").Append(TaskDateTypes).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalTaskDateTypes); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalTaskDateTypes instances are equal 84 | /// 85 | /// Instance of GlobalTaskDateTypes to be compared 86 | /// Boolean 87 | public bool Equals(GlobalTaskDateTypes other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.TaskDateTypes == other.TaskDateTypes || 96 | this.TaskDateTypes != null && 97 | this.TaskDateTypes.SequenceEqual(other.TaskDateTypes) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.TaskDateTypes != null) 113 | hash = hash * 59 + this.TaskDateTypes.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/NullableFieldData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Linq; 13 | using System.IO; 14 | using System.Text; 15 | using System.Text.RegularExpressions; 16 | using System.Collections; 17 | using System.Collections.Generic; 18 | using System.Collections.ObjectModel; 19 | using System.Runtime.Serialization; 20 | using Newtonsoft.Json; 21 | using Newtonsoft.Json.Converters; 22 | using System.ComponentModel.DataAnnotations; 23 | using SwaggerDateConverter = DocuSign.Rooms.Client.SwaggerDateConverter; 24 | 25 | namespace DocuSign.Rooms.Model 26 | { 27 | /// 28 | /// NullableFieldData 29 | /// 30 | [DataContract] 31 | public partial class NullableFieldData : IEquatable, IValidatableObject 32 | { 33 | public NullableFieldData() 34 | { 35 | // Empty Constructor 36 | } 37 | 38 | /// 39 | /// Initializes a new instance of the class. 40 | /// 41 | /// Data. 42 | public NullableFieldData(Dictionary Data = default(Dictionary)) 43 | { 44 | this.Data = Data; 45 | } 46 | 47 | /// 48 | /// Gets or Sets Data 49 | /// 50 | [DataMember(Name="data", EmitDefaultValue=false)] 51 | public Dictionary Data { get; set; } 52 | /// 53 | /// Returns the string presentation of the object 54 | /// 55 | /// String presentation of the object 56 | public override string ToString() 57 | { 58 | var sb = new StringBuilder(); 59 | sb.Append("class NullableFieldData {\n"); 60 | sb.Append(" Data: ").Append(Data).Append("\n"); 61 | sb.Append("}\n"); 62 | return sb.ToString(); 63 | } 64 | 65 | /// 66 | /// Returns the JSON string presentation of the object 67 | /// 68 | /// JSON string presentation of the object 69 | public string ToJson() 70 | { 71 | return JsonConvert.SerializeObject(this, Formatting.Indented); 72 | } 73 | 74 | /// 75 | /// Returns true if objects are equal 76 | /// 77 | /// Object to be compared 78 | /// Boolean 79 | public override bool Equals(object obj) 80 | { 81 | // credit: http://stackoverflow.com/a/10454552/677735 82 | return this.Equals(obj as NullableFieldData); 83 | } 84 | 85 | /// 86 | /// Returns true if NullableFieldData instances are equal 87 | /// 88 | /// Instance of NullableFieldData to be compared 89 | /// Boolean 90 | public bool Equals(NullableFieldData other) 91 | { 92 | // credit: http://stackoverflow.com/a/10454552/677735 93 | if (other == null) 94 | return false; 95 | 96 | return 97 | ( 98 | this.Data == other.Data || 99 | this.Data != null && 100 | this.Data.SequenceEqual(other.Data) 101 | ); 102 | } 103 | 104 | /// 105 | /// Gets the hash code 106 | /// 107 | /// Hash code 108 | public override int GetHashCode() 109 | { 110 | // credit: http://stackoverflow.com/a/263416/677735 111 | unchecked // Overflow is fine, just wrap 112 | { 113 | int hash = 41; 114 | // Suitable nullity checks etc, of course :) 115 | if (this.Data != null) 116 | hash = hash * 59 + this.Data.GetHashCode(); 117 | return hash; 118 | } 119 | } 120 | 121 | public IEnumerable Validate(ValidationContext validationContext) 122 | { 123 | yield break; 124 | } 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/RoomUserRemovalDetail.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// RoomUserRemovalDetail 26 | /// 27 | [DataContract] 28 | public partial class RoomUserRemovalDetail : IEquatable, IValidatableObject 29 | { 30 | public RoomUserRemovalDetail() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// RevocationDate. 39 | public RoomUserRemovalDetail(DateTime? RevocationDate = default(DateTime?)) 40 | { 41 | this.RevocationDate = RevocationDate; 42 | } 43 | 44 | /// 45 | /// Gets or Sets RevocationDate 46 | /// 47 | [DataMember(Name="revocationDate", EmitDefaultValue=false)] 48 | public DateTime? RevocationDate { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class RoomUserRemovalDetail {\n"); 57 | sb.Append(" RevocationDate: ").Append(RevocationDate).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as RoomUserRemovalDetail); 80 | } 81 | 82 | /// 83 | /// Returns true if RoomUserRemovalDetail instances are equal 84 | /// 85 | /// Instance of RoomUserRemovalDetail to be compared 86 | /// Boolean 87 | public bool Equals(RoomUserRemovalDetail other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.RevocationDate == other.RevocationDate || 96 | this.RevocationDate != null && 97 | this.RevocationDate.Equals(other.RevocationDate) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.RevocationDate != null) 113 | hash = hash * 59 + this.RevocationDate.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/TaskListForCreate.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// TaskListForCreate 26 | /// 27 | [DataContract] 28 | public partial class TaskListForCreate : IEquatable, IValidatableObject 29 | { 30 | public TaskListForCreate() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// TaskListTemplateId. 39 | public TaskListForCreate(int? TaskListTemplateId = default(int?)) 40 | { 41 | this.TaskListTemplateId = TaskListTemplateId; 42 | } 43 | 44 | /// 45 | /// Gets or Sets TaskListTemplateId 46 | /// 47 | [DataMember(Name="taskListTemplateId", EmitDefaultValue=false)] 48 | public int? TaskListTemplateId { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class TaskListForCreate {\n"); 57 | sb.Append(" TaskListTemplateId: ").Append(TaskListTemplateId).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as TaskListForCreate); 80 | } 81 | 82 | /// 83 | /// Returns true if TaskListForCreate instances are equal 84 | /// 85 | /// Instance of TaskListForCreate to be compared 86 | /// Boolean 87 | public bool Equals(TaskListForCreate other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.TaskListTemplateId == other.TaskListTemplateId || 96 | this.TaskListTemplateId != null && 97 | this.TaskListTemplateId.Equals(other.TaskListTemplateId) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.TaskListTemplateId != null) 113 | hash = hash * 59 + this.TaskListTemplateId.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalFinancingTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalFinancingTypes 26 | /// 27 | [DataContract] 28 | public partial class GlobalFinancingTypes : IEquatable, IValidatableObject 29 | { 30 | public GlobalFinancingTypes() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// FinancingTypes. 39 | public GlobalFinancingTypes(List FinancingTypes = default(List)) 40 | { 41 | this.FinancingTypes = FinancingTypes; 42 | } 43 | 44 | /// 45 | /// Gets or Sets FinancingTypes 46 | /// 47 | [DataMember(Name="financingTypes", EmitDefaultValue=false)] 48 | public List FinancingTypes { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalFinancingTypes {\n"); 57 | sb.Append(" FinancingTypes: ").Append(FinancingTypes).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalFinancingTypes); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalFinancingTypes instances are equal 84 | /// 85 | /// Instance of GlobalFinancingTypes to be compared 86 | /// Boolean 87 | public bool Equals(GlobalFinancingTypes other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.FinancingTypes == other.FinancingTypes || 96 | this.FinancingTypes != null && 97 | this.FinancingTypes.SequenceEqual(other.FinancingTypes) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.FinancingTypes != null) 113 | hash = hash * 59 + this.FinancingTypes.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalOriginsOfLeads.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalOriginsOfLeads 26 | /// 27 | [DataContract] 28 | public partial class GlobalOriginsOfLeads : IEquatable, IValidatableObject 29 | { 30 | public GlobalOriginsOfLeads() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// OriginsOfLeads. 39 | public GlobalOriginsOfLeads(List OriginsOfLeads = default(List)) 40 | { 41 | this.OriginsOfLeads = OriginsOfLeads; 42 | } 43 | 44 | /// 45 | /// Gets or Sets OriginsOfLeads 46 | /// 47 | [DataMember(Name="originsOfLeads", EmitDefaultValue=false)] 48 | public List OriginsOfLeads { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalOriginsOfLeads {\n"); 57 | sb.Append(" OriginsOfLeads: ").Append(OriginsOfLeads).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalOriginsOfLeads); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalOriginsOfLeads instances are equal 84 | /// 85 | /// Instance of GlobalOriginsOfLeads to be compared 86 | /// Boolean 87 | public bool Equals(GlobalOriginsOfLeads other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.OriginsOfLeads == other.OriginsOfLeads || 96 | this.OriginsOfLeads != null && 97 | this.OriginsOfLeads.SequenceEqual(other.OriginsOfLeads) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.OriginsOfLeads != null) 113 | hash = hash * 59 + this.OriginsOfLeads.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalClosingStatuses.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalClosingStatuses 26 | /// 27 | [DataContract] 28 | public partial class GlobalClosingStatuses : IEquatable, IValidatableObject 29 | { 30 | public GlobalClosingStatuses() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// ClosingStatuses. 39 | public GlobalClosingStatuses(List ClosingStatuses = default(List)) 40 | { 41 | this.ClosingStatuses = ClosingStatuses; 42 | } 43 | 44 | /// 45 | /// Gets or Sets ClosingStatuses 46 | /// 47 | [DataMember(Name="closingStatuses", EmitDefaultValue=false)] 48 | public List ClosingStatuses { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalClosingStatuses {\n"); 57 | sb.Append(" ClosingStatuses: ").Append(ClosingStatuses).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalClosingStatuses); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalClosingStatuses instances are equal 84 | /// 85 | /// Instance of GlobalClosingStatuses to be compared 86 | /// Boolean 87 | public bool Equals(GlobalClosingStatuses other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.ClosingStatuses == other.ClosingStatuses || 96 | this.ClosingStatuses != null && 97 | this.ClosingStatuses.SequenceEqual(other.ClosingStatuses) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.ClosingStatuses != null) 113 | hash = hash * 59 + this.ClosingStatuses.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/FormForAdd.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// FormForAdd 26 | /// 27 | [DataContract] 28 | public partial class FormForAdd : IEquatable, IValidatableObject 29 | { 30 | public FormForAdd() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// FormId (required). 39 | public FormForAdd(Guid? FormId = default(Guid?)) 40 | { 41 | // to ensure "FormId" is required (not null) 42 | if (FormId == null) 43 | { 44 | throw new InvalidDataException("FormId is a required property for FormForAdd and cannot be null"); 45 | } 46 | else 47 | { 48 | this.FormId = FormId; 49 | } 50 | } 51 | 52 | /// 53 | /// Gets or Sets FormId 54 | /// 55 | [DataMember(Name="formId", EmitDefaultValue=false)] 56 | public Guid? FormId { get; set; } 57 | /// 58 | /// Returns the string presentation of the object 59 | /// 60 | /// String presentation of the object 61 | public override string ToString() 62 | { 63 | var sb = new StringBuilder(); 64 | sb.Append("class FormForAdd {\n"); 65 | sb.Append(" FormId: ").Append(FormId).Append("\n"); 66 | sb.Append("}\n"); 67 | return sb.ToString(); 68 | } 69 | 70 | /// 71 | /// Returns the JSON string presentation of the object 72 | /// 73 | /// JSON string presentation of the object 74 | public string ToJson() 75 | { 76 | return JsonConvert.SerializeObject(this, Formatting.Indented); 77 | } 78 | 79 | /// 80 | /// Returns true if objects are equal 81 | /// 82 | /// Object to be compared 83 | /// Boolean 84 | public override bool Equals(object obj) 85 | { 86 | // credit: http://stackoverflow.com/a/10454552/677735 87 | return this.Equals(obj as FormForAdd); 88 | } 89 | 90 | /// 91 | /// Returns true if FormForAdd instances are equal 92 | /// 93 | /// Instance of FormForAdd to be compared 94 | /// Boolean 95 | public bool Equals(FormForAdd other) 96 | { 97 | // credit: http://stackoverflow.com/a/10454552/677735 98 | if (other == null) 99 | return false; 100 | 101 | return 102 | ( 103 | this.FormId == other.FormId || 104 | this.FormId != null && 105 | this.FormId.Equals(other.FormId) 106 | ); 107 | } 108 | 109 | /// 110 | /// Gets the hash code 111 | /// 112 | /// Hash code 113 | public override int GetHashCode() 114 | { 115 | // credit: http://stackoverflow.com/a/263416/677735 116 | unchecked // Overflow is fine, just wrap 117 | { 118 | int hash = 41; 119 | // Suitable nullity checks etc, of course :) 120 | if (this.FormId != null) 121 | hash = hash * 59 + this.FormId.GetHashCode(); 122 | return hash; 123 | } 124 | } 125 | 126 | public IEnumerable Validate(ValidationContext validationContext) 127 | { 128 | yield break; 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/TaskListSummaryList.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// TaskListSummaryList 26 | /// 27 | [DataContract] 28 | public partial class TaskListSummaryList : IEquatable, IValidatableObject 29 | { 30 | public TaskListSummaryList() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// TaskListSummaries. 39 | public TaskListSummaryList(List TaskListSummaries = default(List)) 40 | { 41 | this.TaskListSummaries = TaskListSummaries; 42 | } 43 | 44 | /// 45 | /// Gets or Sets TaskListSummaries 46 | /// 47 | [DataMember(Name="taskListSummaries", EmitDefaultValue=false)] 48 | public List TaskListSummaries { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class TaskListSummaryList {\n"); 57 | sb.Append(" TaskListSummaries: ").Append(TaskListSummaries).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as TaskListSummaryList); 80 | } 81 | 82 | /// 83 | /// Returns true if TaskListSummaryList instances are equal 84 | /// 85 | /// Instance of TaskListSummaryList to be compared 86 | /// Boolean 87 | public bool Equals(TaskListSummaryList other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.TaskListSummaries == other.TaskListSummaries || 96 | this.TaskListSummaries != null && 97 | this.TaskListSummaries.SequenceEqual(other.TaskListSummaries) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.TaskListSummaries != null) 113 | hash = hash * 59 + this.TaskListSummaries.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalRoomContactTypes.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalRoomContactTypes 26 | /// 27 | [DataContract] 28 | public partial class GlobalRoomContactTypes : IEquatable, IValidatableObject 29 | { 30 | public GlobalRoomContactTypes() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// RoomContactTypes. 39 | public GlobalRoomContactTypes(List RoomContactTypes = default(List)) 40 | { 41 | this.RoomContactTypes = RoomContactTypes; 42 | } 43 | 44 | /// 45 | /// Gets or Sets RoomContactTypes 46 | /// 47 | [DataMember(Name="roomContactTypes", EmitDefaultValue=false)] 48 | public List RoomContactTypes { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalRoomContactTypes {\n"); 57 | sb.Append(" RoomContactTypes: ").Append(RoomContactTypes).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalRoomContactTypes); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalRoomContactTypes instances are equal 84 | /// 85 | /// Instance of GlobalRoomContactTypes to be compared 86 | /// Boolean 87 | public bool Equals(GlobalRoomContactTypes other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.RoomContactTypes == other.RoomContactTypes || 96 | this.RoomContactTypes != null && 97 | this.RoomContactTypes.SequenceEqual(other.RoomContactTypes) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.RoomContactTypes != null) 113 | hash = hash * 59 + this.RoomContactTypes.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/GlobalTransactionSides.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// GlobalTransactionSides 26 | /// 27 | [DataContract] 28 | public partial class GlobalTransactionSides : IEquatable, IValidatableObject 29 | { 30 | public GlobalTransactionSides() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// TransactionSides. 39 | public GlobalTransactionSides(List TransactionSides = default(List)) 40 | { 41 | this.TransactionSides = TransactionSides; 42 | } 43 | 44 | /// 45 | /// Gets or Sets TransactionSides 46 | /// 47 | [DataMember(Name="transactionSides", EmitDefaultValue=false)] 48 | public List TransactionSides { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class GlobalTransactionSides {\n"); 57 | sb.Append(" TransactionSides: ").Append(TransactionSides).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as GlobalTransactionSides); 80 | } 81 | 82 | /// 83 | /// Returns true if GlobalTransactionSides instances are equal 84 | /// 85 | /// Instance of GlobalTransactionSides to be compared 86 | /// Boolean 87 | public bool Equals(GlobalTransactionSides other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.TransactionSides == other.TransactionSides || 96 | this.TransactionSides != null && 97 | this.TransactionSides.SequenceEqual(other.TransactionSides) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.TransactionSides != null) 113 | hash = hash * 59 + this.TransactionSides.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/RegionReferenceCountList.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// RegionReferenceCountList 26 | /// 27 | [DataContract] 28 | public partial class RegionReferenceCountList : IEquatable, IValidatableObject 29 | { 30 | public RegionReferenceCountList() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// ReferenceCounts. 39 | public RegionReferenceCountList(List ReferenceCounts = default(List)) 40 | { 41 | this.ReferenceCounts = ReferenceCounts; 42 | } 43 | 44 | /// 45 | /// Gets or Sets ReferenceCounts 46 | /// 47 | [DataMember(Name="referenceCounts", EmitDefaultValue=false)] 48 | public List ReferenceCounts { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class RegionReferenceCountList {\n"); 57 | sb.Append(" ReferenceCounts: ").Append(ReferenceCounts).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as RegionReferenceCountList); 80 | } 81 | 82 | /// 83 | /// Returns true if RegionReferenceCountList instances are equal 84 | /// 85 | /// Instance of RegionReferenceCountList to be compared 86 | /// Boolean 87 | public bool Equals(RegionReferenceCountList other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.ReferenceCounts == other.ReferenceCounts || 96 | this.ReferenceCounts != null && 97 | this.ReferenceCounts.SequenceEqual(other.ReferenceCounts) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.ReferenceCounts != null) 113 | hash = hash * 59 + this.ReferenceCounts.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/FormGroupForCreate.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// FormGroupForCreate 26 | /// 27 | [DataContract] 28 | public partial class FormGroupForCreate : IEquatable, IValidatableObject 29 | { 30 | public FormGroupForCreate() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Name (required). 39 | public FormGroupForCreate(string Name = default(string)) 40 | { 41 | // to ensure "Name" is required (not null) 42 | if (Name == null) 43 | { 44 | throw new InvalidDataException("Name is a required property for FormGroupForCreate and cannot be null"); 45 | } 46 | else 47 | { 48 | this.Name = Name; 49 | } 50 | } 51 | 52 | /// 53 | /// Gets or Sets Name 54 | /// 55 | [DataMember(Name="name", EmitDefaultValue=false)] 56 | public string Name { get; set; } 57 | /// 58 | /// Returns the string presentation of the object 59 | /// 60 | /// String presentation of the object 61 | public override string ToString() 62 | { 63 | var sb = new StringBuilder(); 64 | sb.Append("class FormGroupForCreate {\n"); 65 | sb.Append(" Name: ").Append(Name).Append("\n"); 66 | sb.Append("}\n"); 67 | return sb.ToString(); 68 | } 69 | 70 | /// 71 | /// Returns the JSON string presentation of the object 72 | /// 73 | /// JSON string presentation of the object 74 | public string ToJson() 75 | { 76 | return JsonConvert.SerializeObject(this, Formatting.Indented); 77 | } 78 | 79 | /// 80 | /// Returns true if objects are equal 81 | /// 82 | /// Object to be compared 83 | /// Boolean 84 | public override bool Equals(object obj) 85 | { 86 | // credit: http://stackoverflow.com/a/10454552/677735 87 | return this.Equals(obj as FormGroupForCreate); 88 | } 89 | 90 | /// 91 | /// Returns true if FormGroupForCreate instances are equal 92 | /// 93 | /// Instance of FormGroupForCreate to be compared 94 | /// Boolean 95 | public bool Equals(FormGroupForCreate other) 96 | { 97 | // credit: http://stackoverflow.com/a/10454552/677735 98 | if (other == null) 99 | return false; 100 | 101 | return 102 | ( 103 | this.Name == other.Name || 104 | this.Name != null && 105 | this.Name.Equals(other.Name) 106 | ); 107 | } 108 | 109 | /// 110 | /// Gets the hash code 111 | /// 112 | /// Hash code 113 | public override int GetHashCode() 114 | { 115 | // credit: http://stackoverflow.com/a/263416/677735 116 | unchecked // Overflow is fine, just wrap 117 | { 118 | int hash = 41; 119 | // Suitable nullity checks etc, of course :) 120 | if (this.Name != null) 121 | hash = hash * 59 + this.Name.GetHashCode(); 122 | return hash; 123 | } 124 | } 125 | 126 | public IEnumerable Validate(ValidationContext validationContext) 127 | { 128 | yield break; 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/FormGroupForUpdate.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// FormGroupForUpdate 26 | /// 27 | [DataContract] 28 | public partial class FormGroupForUpdate : IEquatable, IValidatableObject 29 | { 30 | public FormGroupForUpdate() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Name (required). 39 | public FormGroupForUpdate(string Name = default(string)) 40 | { 41 | // to ensure "Name" is required (not null) 42 | if (Name == null) 43 | { 44 | throw new InvalidDataException("Name is a required property for FormGroupForUpdate and cannot be null"); 45 | } 46 | else 47 | { 48 | this.Name = Name; 49 | } 50 | } 51 | 52 | /// 53 | /// Gets or Sets Name 54 | /// 55 | [DataMember(Name="name", EmitDefaultValue=false)] 56 | public string Name { get; set; } 57 | /// 58 | /// Returns the string presentation of the object 59 | /// 60 | /// String presentation of the object 61 | public override string ToString() 62 | { 63 | var sb = new StringBuilder(); 64 | sb.Append("class FormGroupForUpdate {\n"); 65 | sb.Append(" Name: ").Append(Name).Append("\n"); 66 | sb.Append("}\n"); 67 | return sb.ToString(); 68 | } 69 | 70 | /// 71 | /// Returns the JSON string presentation of the object 72 | /// 73 | /// JSON string presentation of the object 74 | public string ToJson() 75 | { 76 | return JsonConvert.SerializeObject(this, Formatting.Indented); 77 | } 78 | 79 | /// 80 | /// Returns true if objects are equal 81 | /// 82 | /// Object to be compared 83 | /// Boolean 84 | public override bool Equals(object obj) 85 | { 86 | // credit: http://stackoverflow.com/a/10454552/677735 87 | return this.Equals(obj as FormGroupForUpdate); 88 | } 89 | 90 | /// 91 | /// Returns true if FormGroupForUpdate instances are equal 92 | /// 93 | /// Instance of FormGroupForUpdate to be compared 94 | /// Boolean 95 | public bool Equals(FormGroupForUpdate other) 96 | { 97 | // credit: http://stackoverflow.com/a/10454552/677735 98 | if (other == null) 99 | return false; 100 | 101 | return 102 | ( 103 | this.Name == other.Name || 104 | this.Name != null && 105 | this.Name.Equals(other.Name) 106 | ); 107 | } 108 | 109 | /// 110 | /// Gets the hash code 111 | /// 112 | /// Hash code 113 | public override int GetHashCode() 114 | { 115 | // credit: http://stackoverflow.com/a/263416/677735 116 | unchecked // Overflow is fine, just wrap 117 | { 118 | int hash = 41; 119 | // Suitable nullity checks etc, of course :) 120 | if (this.Name != null) 121 | hash = hash * 59 + this.Name.GetHashCode(); 122 | return hash; 123 | } 124 | } 125 | 126 | public IEnumerable Validate(ValidationContext validationContext) 127 | { 128 | yield break; 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/OfficeReferenceCountList.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// OfficeReferenceCountList 26 | /// 27 | [DataContract] 28 | public partial class OfficeReferenceCountList : IEquatable, IValidatableObject 29 | { 30 | public OfficeReferenceCountList() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// ReferencesCounts. 39 | public OfficeReferenceCountList(List ReferencesCounts = default(List)) 40 | { 41 | this.ReferencesCounts = ReferencesCounts; 42 | } 43 | 44 | /// 45 | /// Gets or Sets ReferencesCounts 46 | /// 47 | [DataMember(Name="referencesCounts", EmitDefaultValue=false)] 48 | public List ReferencesCounts { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class OfficeReferenceCountList {\n"); 57 | sb.Append(" ReferencesCounts: ").Append(ReferencesCounts).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as OfficeReferenceCountList); 80 | } 81 | 82 | /// 83 | /// Returns true if OfficeReferenceCountList instances are equal 84 | /// 85 | /// Instance of OfficeReferenceCountList to be compared 86 | /// Boolean 87 | public bool Equals(OfficeReferenceCountList other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.ReferencesCounts == other.ReferencesCounts || 96 | this.ReferencesCounts != null && 97 | this.ReferencesCounts.SequenceEqual(other.ReferencesCounts) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.ReferencesCounts != null) 113 | hash = hash * 59 + this.ReferencesCounts.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/LockedOutDetails.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// LockedOutDetails 26 | /// 27 | [DataContract] 28 | public partial class LockedOutDetails : IEquatable, IValidatableObject 29 | { 30 | public LockedOutDetails() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// Reason (required). 39 | public LockedOutDetails(string Reason = default(string)) 40 | { 41 | // to ensure "Reason" is required (not null) 42 | if (Reason == null) 43 | { 44 | throw new InvalidDataException("Reason is a required property for LockedOutDetails and cannot be null"); 45 | } 46 | else 47 | { 48 | this.Reason = Reason; 49 | } 50 | } 51 | 52 | /// 53 | /// Gets or Sets Reason 54 | /// 55 | [DataMember(Name="reason", EmitDefaultValue=false)] 56 | public string Reason { get; set; } 57 | /// 58 | /// Returns the string presentation of the object 59 | /// 60 | /// String presentation of the object 61 | public override string ToString() 62 | { 63 | var sb = new StringBuilder(); 64 | sb.Append("class LockedOutDetails {\n"); 65 | sb.Append(" Reason: ").Append(Reason).Append("\n"); 66 | sb.Append("}\n"); 67 | return sb.ToString(); 68 | } 69 | 70 | /// 71 | /// Returns the JSON string presentation of the object 72 | /// 73 | /// JSON string presentation of the object 74 | public string ToJson() 75 | { 76 | return JsonConvert.SerializeObject(this, Formatting.Indented); 77 | } 78 | 79 | /// 80 | /// Returns true if objects are equal 81 | /// 82 | /// Object to be compared 83 | /// Boolean 84 | public override bool Equals(object obj) 85 | { 86 | // credit: http://stackoverflow.com/a/10454552/677735 87 | return this.Equals(obj as LockedOutDetails); 88 | } 89 | 90 | /// 91 | /// Returns true if LockedOutDetails instances are equal 92 | /// 93 | /// Instance of LockedOutDetails to be compared 94 | /// Boolean 95 | public bool Equals(LockedOutDetails other) 96 | { 97 | // credit: http://stackoverflow.com/a/10454552/677735 98 | if (other == null) 99 | return false; 100 | 101 | return 102 | ( 103 | this.Reason == other.Reason || 104 | this.Reason != null && 105 | this.Reason.Equals(other.Reason) 106 | ); 107 | } 108 | 109 | /// 110 | /// Gets the hash code 111 | /// 112 | /// Hash code 113 | public override int GetHashCode() 114 | { 115 | // credit: http://stackoverflow.com/a/263416/677735 116 | unchecked // Overflow is fine, just wrap 117 | { 118 | int hash = 41; 119 | // Suitable nullity checks etc, of course :) 120 | if (this.Reason != null) 121 | hash = hash * 59 + this.Reason.GetHashCode(); 122 | return hash; 123 | } 124 | } 125 | 126 | public IEnumerable Validate(ValidationContext validationContext) 127 | { 128 | yield break; 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/ESignAccountRoleSettings.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// ESignAccountRoleSettings 26 | /// 27 | [DataContract] 28 | public partial class ESignAccountRoleSettings : IEquatable, IValidatableObject 29 | { 30 | public ESignAccountRoleSettings() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// AllowAccountManagement. 39 | public ESignAccountRoleSettings(bool? AllowAccountManagement = default(bool?)) 40 | { 41 | this.AllowAccountManagement = AllowAccountManagement; 42 | } 43 | 44 | /// 45 | /// Gets or Sets AllowAccountManagement 46 | /// 47 | [DataMember(Name="allowAccountManagement", EmitDefaultValue=false)] 48 | public bool? AllowAccountManagement { get; set; } 49 | /// 50 | /// Returns the string presentation of the object 51 | /// 52 | /// String presentation of the object 53 | public override string ToString() 54 | { 55 | var sb = new StringBuilder(); 56 | sb.Append("class ESignAccountRoleSettings {\n"); 57 | sb.Append(" AllowAccountManagement: ").Append(AllowAccountManagement).Append("\n"); 58 | sb.Append("}\n"); 59 | return sb.ToString(); 60 | } 61 | 62 | /// 63 | /// Returns the JSON string presentation of the object 64 | /// 65 | /// JSON string presentation of the object 66 | public string ToJson() 67 | { 68 | return JsonConvert.SerializeObject(this, Formatting.Indented); 69 | } 70 | 71 | /// 72 | /// Returns true if objects are equal 73 | /// 74 | /// Object to be compared 75 | /// Boolean 76 | public override bool Equals(object obj) 77 | { 78 | // credit: http://stackoverflow.com/a/10454552/677735 79 | return this.Equals(obj as ESignAccountRoleSettings); 80 | } 81 | 82 | /// 83 | /// Returns true if ESignAccountRoleSettings instances are equal 84 | /// 85 | /// Instance of ESignAccountRoleSettings to be compared 86 | /// Boolean 87 | public bool Equals(ESignAccountRoleSettings other) 88 | { 89 | // credit: http://stackoverflow.com/a/10454552/677735 90 | if (other == null) 91 | return false; 92 | 93 | return 94 | ( 95 | this.AllowAccountManagement == other.AllowAccountManagement || 96 | this.AllowAccountManagement != null && 97 | this.AllowAccountManagement.Equals(other.AllowAccountManagement) 98 | ); 99 | } 100 | 101 | /// 102 | /// Gets the hash code 103 | /// 104 | /// Hash code 105 | public override int GetHashCode() 106 | { 107 | // credit: http://stackoverflow.com/a/263416/677735 108 | unchecked // Overflow is fine, just wrap 109 | { 110 | int hash = 41; 111 | // Suitable nullity checks etc, of course :) 112 | if (this.AllowAccountManagement != null) 113 | hash = hash * 59 + this.AllowAccountManagement.GetHashCode(); 114 | return hash; 115 | } 116 | } 117 | 118 | public IEnumerable Validate(ValidationContext validationContext) 119 | { 120 | yield break; 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/DesignatedOffice.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// DesignatedOffice 26 | /// 27 | [DataContract] 28 | public partial class DesignatedOffice : IEquatable, IValidatableObject 29 | { 30 | public DesignatedOffice() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// OfficeId (required). 39 | public DesignatedOffice(int? OfficeId = default(int?)) 40 | { 41 | // to ensure "OfficeId" is required (not null) 42 | if (OfficeId == null) 43 | { 44 | throw new InvalidDataException("OfficeId is a required property for DesignatedOffice and cannot be null"); 45 | } 46 | else 47 | { 48 | this.OfficeId = OfficeId; 49 | } 50 | } 51 | 52 | /// 53 | /// Gets or Sets OfficeId 54 | /// 55 | [DataMember(Name="officeId", EmitDefaultValue=false)] 56 | public int? OfficeId { get; set; } 57 | /// 58 | /// Returns the string presentation of the object 59 | /// 60 | /// String presentation of the object 61 | public override string ToString() 62 | { 63 | var sb = new StringBuilder(); 64 | sb.Append("class DesignatedOffice {\n"); 65 | sb.Append(" OfficeId: ").Append(OfficeId).Append("\n"); 66 | sb.Append("}\n"); 67 | return sb.ToString(); 68 | } 69 | 70 | /// 71 | /// Returns the JSON string presentation of the object 72 | /// 73 | /// JSON string presentation of the object 74 | public string ToJson() 75 | { 76 | return JsonConvert.SerializeObject(this, Formatting.Indented); 77 | } 78 | 79 | /// 80 | /// Returns true if objects are equal 81 | /// 82 | /// Object to be compared 83 | /// Boolean 84 | public override bool Equals(object obj) 85 | { 86 | // credit: http://stackoverflow.com/a/10454552/677735 87 | return this.Equals(obj as DesignatedOffice); 88 | } 89 | 90 | /// 91 | /// Returns true if DesignatedOffice instances are equal 92 | /// 93 | /// Instance of DesignatedOffice to be compared 94 | /// Boolean 95 | public bool Equals(DesignatedOffice other) 96 | { 97 | // credit: http://stackoverflow.com/a/10454552/677735 98 | if (other == null) 99 | return false; 100 | 101 | return 102 | ( 103 | this.OfficeId == other.OfficeId || 104 | this.OfficeId != null && 105 | this.OfficeId.Equals(other.OfficeId) 106 | ); 107 | } 108 | 109 | /// 110 | /// Gets the hash code 111 | /// 112 | /// Hash code 113 | public override int GetHashCode() 114 | { 115 | // credit: http://stackoverflow.com/a/263416/677735 116 | unchecked // Overflow is fine, just wrap 117 | { 118 | int hash = 41; 119 | // Suitable nullity checks etc, of course :) 120 | if (this.OfficeId != null) 121 | hash = hash * 59 + this.OfficeId.GetHashCode(); 122 | return hash; 123 | } 124 | } 125 | 126 | public IEnumerable Validate(ValidationContext validationContext) 127 | { 128 | yield break; 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /sdk/src/DocuSign.Rooms/Model/DesignatedRegion.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DocuSign Rooms API - v2 3 | * 4 | * An API for an integrator to access the features of DocuSign Rooms 5 | * 6 | * OpenAPI spec version: v2 7 | * Contact: devcenter@docusign.com 8 | * Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | */ 10 | 11 | using System; 12 | using System.Collections.Generic; 13 | using System.IO; 14 | using System.Linq; 15 | using System.Runtime.Serialization; 16 | using System.Text; 17 | using System.Text.RegularExpressions; 18 | using Newtonsoft.Json; 19 | using Newtonsoft.Json.Converters; 20 | using System.ComponentModel.DataAnnotations; 21 | 22 | namespace DocuSign.Rooms.Model 23 | { 24 | /// 25 | /// DesignatedRegion 26 | /// 27 | [DataContract] 28 | public partial class DesignatedRegion : IEquatable, IValidatableObject 29 | { 30 | public DesignatedRegion() 31 | { 32 | // Empty Constructor 33 | } 34 | 35 | /// 36 | /// Initializes a new instance of the class. 37 | /// 38 | /// RegionId (required). 39 | public DesignatedRegion(int? RegionId = default(int?)) 40 | { 41 | // to ensure "RegionId" is required (not null) 42 | if (RegionId == null) 43 | { 44 | throw new InvalidDataException("RegionId is a required property for DesignatedRegion and cannot be null"); 45 | } 46 | else 47 | { 48 | this.RegionId = RegionId; 49 | } 50 | } 51 | 52 | /// 53 | /// Gets or Sets RegionId 54 | /// 55 | [DataMember(Name="regionId", EmitDefaultValue=false)] 56 | public int? RegionId { get; set; } 57 | /// 58 | /// Returns the string presentation of the object 59 | /// 60 | /// String presentation of the object 61 | public override string ToString() 62 | { 63 | var sb = new StringBuilder(); 64 | sb.Append("class DesignatedRegion {\n"); 65 | sb.Append(" RegionId: ").Append(RegionId).Append("\n"); 66 | sb.Append("}\n"); 67 | return sb.ToString(); 68 | } 69 | 70 | /// 71 | /// Returns the JSON string presentation of the object 72 | /// 73 | /// JSON string presentation of the object 74 | public string ToJson() 75 | { 76 | return JsonConvert.SerializeObject(this, Formatting.Indented); 77 | } 78 | 79 | /// 80 | /// Returns true if objects are equal 81 | /// 82 | /// Object to be compared 83 | /// Boolean 84 | public override bool Equals(object obj) 85 | { 86 | // credit: http://stackoverflow.com/a/10454552/677735 87 | return this.Equals(obj as DesignatedRegion); 88 | } 89 | 90 | /// 91 | /// Returns true if DesignatedRegion instances are equal 92 | /// 93 | /// Instance of DesignatedRegion to be compared 94 | /// Boolean 95 | public bool Equals(DesignatedRegion other) 96 | { 97 | // credit: http://stackoverflow.com/a/10454552/677735 98 | if (other == null) 99 | return false; 100 | 101 | return 102 | ( 103 | this.RegionId == other.RegionId || 104 | this.RegionId != null && 105 | this.RegionId.Equals(other.RegionId) 106 | ); 107 | } 108 | 109 | /// 110 | /// Gets the hash code 111 | /// 112 | /// Hash code 113 | public override int GetHashCode() 114 | { 115 | // credit: http://stackoverflow.com/a/263416/677735 116 | unchecked // Overflow is fine, just wrap 117 | { 118 | int hash = 41; 119 | // Suitable nullity checks etc, of course :) 120 | if (this.RegionId != null) 121 | hash = hash * 59 + this.RegionId.GetHashCode(); 122 | return hash; 123 | } 124 | } 125 | 126 | public IEnumerable Validate(ValidationContext validationContext) 127 | { 128 | yield break; 129 | } 130 | } 131 | } 132 | --------------------------------------------------------------------------------