Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoVersions" /> class.
 /// </summary>
 /// <param name="active">Whether this video version is the currently active one. (required).</param>
 /// <param name="app">The API app associated with the video version. (required).</param>
 /// <param name="createdTime">The time in ISO 8601 for when the video version was created. (required).</param>
 /// <param name="duration">The duration of the video version in seconds. (required).</param>
 /// <param name="filename">The file name of the video version. (required).</param>
 /// <param name="filesize">The size in byes of the video version file. (required).</param>
 /// <param name="metadata">metadata (required).</param>
 /// <param name="modifiedTime">The time in ISO 8601 format when the video version was last modified. (required).</param>
 /// <param name="upload">upload (required).</param>
 /// <param name="uploadDate">The time in ISO 8601 format when the video version was uploaded. (required).</param>
 /// <param name="uri">The version&#39;s canonical relative URI. (required).</param>
 /// <param name="user">The owner of the video version. (required).</param>
 public VideoVersions(bool active = default(bool), ApiApp app = default(ApiApp), string createdTime = default(string), decimal?duration = default(decimal?), string filename = default(string), decimal?filesize = default(decimal?), VideoVersionsMetadata metadata = default(VideoVersionsMetadata), string modifiedTime = default(string), VideoVersionsUpload upload = default(VideoVersionsUpload), string uploadDate = default(string), string uri = default(string), User user = default(User))
 {
     this.Active = active;
     // to ensure "app" is required (not null)
     this.App = app ?? throw new ArgumentNullException("app is a required property for VideoVersions and cannot be null");
     // to ensure "createdTime" is required (not null)
     this.CreatedTime = createdTime ?? throw new ArgumentNullException("createdTime is a required property for VideoVersions and cannot be null");
     // to ensure "duration" is required (not null)
     this.Duration = duration ?? throw new ArgumentNullException("duration is a required property for VideoVersions and cannot be null");
     // to ensure "filename" is required (not null)
     this.Filename = filename ?? throw new ArgumentNullException("filename is a required property for VideoVersions and cannot be null");
     // to ensure "filesize" is required (not null)
     this.Filesize = filesize ?? throw new ArgumentNullException("filesize is a required property for VideoVersions and cannot be null");
     // to ensure "metadata" is required (not null)
     this.Metadata = metadata ?? throw new ArgumentNullException("metadata is a required property for VideoVersions and cannot be null");
     // to ensure "modifiedTime" is required (not null)
     this.ModifiedTime = modifiedTime ?? throw new ArgumentNullException("modifiedTime is a required property for VideoVersions and cannot be null");
     // to ensure "upload" is required (not null)
     this.Upload = upload ?? throw new ArgumentNullException("upload is a required property for VideoVersions and cannot be null");
     // to ensure "uploadDate" is required (not null)
     this.UploadDate = uploadDate ?? throw new ArgumentNullException("uploadDate is a required property for VideoVersions and cannot be null");
     // to ensure "uri" is required (not null)
     this.Uri = uri ?? throw new ArgumentNullException("uri is a required property for VideoVersions and cannot be null");
     // to ensure "user" is required (not null)
     this.User = user ?? throw new ArgumentNullException("user is a required property for VideoVersions and cannot be null");
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Auth" /> class.
 /// </summary>
 /// <param name="accessToken">The access token string. (required).</param>
 /// <param name="app">The API application associated with the token. (required).</param>
 /// <param name="expiresOn">The token&#39;s expiration date..</param>
 /// <param name="refreshToken">The refresh token string..</param>
 /// <param name="scope">The scope or scopes that the token supports. (required).</param>
 /// <param name="tokenType">The token type.  Option descriptions:  * &#x60;bearer&#x60; - The token is of the &#x60;bearer&#x60; type.  (required).</param>
 /// <param name="user">The user associated with the token..</param>
 public Auth(string accessToken = default(string), ApiApp app = default(ApiApp), string expiresOn = default(string), string refreshToken = default(string), string scope = default(string), TokenTypeEnum tokenType = default(TokenTypeEnum), User user = default(User))
 {
     // to ensure "accessToken" is required (not null)
     this.AccessToken = accessToken ?? throw new ArgumentNullException("accessToken is a required property for Auth and cannot be null");
     // to ensure "app" is required (not null)
     this.App = app ?? throw new ArgumentNullException("app is a required property for Auth and cannot be null");
     // to ensure "scope" is required (not null)
     this.Scope        = scope ?? throw new ArgumentNullException("scope is a required property for Auth and cannot be null");
     this.TokenType    = tokenType;
     this.ExpiresOn    = expiresOn;
     this.RefreshToken = refreshToken;
     this.User         = user;
 }