OpenSource » SampleCode » NexPortWebApiClient
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Update new version for the client SDK
- Update NuGet libraries to latest version

- Update APIs to reflect new Nexport API specifications
- Additional code clean up

Changeset b4006dcc78eb

Parent 6e79aa089705

by Profile picture of Thai NguyenThai Nguyen

Changes to 28 files · Browse files at b4006dcc78eb Showing diff from parent 6e79aa089705 Diff from another changeset...

 
26
27
28
29
 
30
31
32
 
37
38
39
40
 
41
42
43
 
350
351
352
353
 
354
355
356
 
364
365
366
367
 
368
369
370
 
393
394
395
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
396
397
398
 
420
421
422
423
 
424
425
426
 
431
432
433
434
 
435
436
437
 
744
745
746
747
 
748
749
750
 
758
759
760
761
 
762
763
764
 
787
788
789
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
790
791
792
 
919
920
921
922
 
923
924
925
 
931
932
933
934
 
935
936
937
 
973
974
975
976
 
977
978
979
 
985
986
987
988
 
989
990
991
 
3477
3478
3479
3480
 
3481
3482
3483
 
3495
3496
3497
3498
 
3499
3500
3501
 
3607
3608
3609
3610
 
3611
3612
3613
 
3625
3626
3627
3628
 
3629
3630
3631
 
3870
3871
3872
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3873
3874
3875
 
26
27
28
 
29
30
31
32
 
37
38
39
 
40
41
42
43
 
350
351
352
 
353
354
355
356
 
364
365
366
 
367
368
369
370
 
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
 
444
445
446
 
447
448
449
450
 
455
456
457
 
458
459
460
461
 
768
769
770
 
771
772
773
774
 
782
783
784
 
785
786
787
788
 
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
 
967
968
969
 
970
971
972
973
 
979
980
981
 
982
983
984
985
 
1021
1022
1023
 
1024
1025
1026
1027
 
1033
1034
1035
 
1036
1037
1038
1039
 
3525
3526
3527
 
3528
3529
3530
3531
 
3543
3544
3545
 
3546
3547
3548
3549
 
3655
3656
3657
 
3658
3659
3660
3661
 
3673
3674
3675
 
3676
3677
3678
3679
 
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
@@ -26,7 +26,7 @@
  /// Used to retrieve an authentication token for NexPort API Requests.   /// </summary>   /// <remarks> - /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body. + /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.   /// </remarks>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains user's NexPort login credentials</param> @@ -37,7 +37,7 @@
  /// Used to retrieve an authentication token for NexPort API Requests.   /// </summary>   /// <remarks> - /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body. + /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.   /// </remarks>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains user's NexPort login credentials</param> @@ -350,7 +350,7 @@
  /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> - /// <param name="searchOperator"></param> + /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>   /// <param name="baseOrgId"></param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <param name="name">The organization/group name (optional)</param> @@ -364,7 +364,7 @@
  /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> - /// <param name="searchOperator"></param> + /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>   /// <param name="baseOrgId"></param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <param name="name">The organization/group name (optional)</param> @@ -393,6 +393,30 @@
  ApiResponse<SetCustomProfileFieldValuesResponse> AdminApiSetCustomProfileFieldValuesWithHttpInfo(string accessToken, SetCustomProfileFieldValuesRequest request);     /// <summary> + /// Sets the Subscription Status on the Subscription. + /// </summary> + /// <remarks> + /// Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor. + /// </remarks> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="request">Contains subscription id and subscription status name</param> + /// <returns>SetSubscriptionStatusResponse</returns> + SetSubscriptionStatusResponse AdminApiSetSubscriptionStatus(string accessToken, SetSubscriptionStatusRequest request); + + /// <summary> + /// Sets the Subscription Status on the Subscription. + /// </summary> + /// <remarks> + /// Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor. + /// </remarks> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="request">Contains subscription id and subscription status name</param> + /// <returns>ApiResponse of SetSubscriptionStatusResponse</returns> + ApiResponse<SetSubscriptionStatusResponse> AdminApiSetSubscriptionStatusWithHttpInfo(string accessToken, SetSubscriptionStatusRequest request); + + /// <summary>   /// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> @@ -420,7 +444,7 @@
  /// Used to retrieve an authentication token for NexPort API Requests.   /// </summary>   /// <remarks> - /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body. + /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.   /// </remarks>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains user's NexPort login credentials</param> @@ -431,7 +455,7 @@
  /// Used to retrieve an authentication token for NexPort API Requests.   /// </summary>   /// <remarks> - /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body. + /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.   /// </remarks>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains user's NexPort login credentials</param> @@ -744,7 +768,7 @@
  /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> - /// <param name="searchOperator"></param> + /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>   /// <param name="baseOrgId"></param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <param name="name">The organization/group name (optional)</param> @@ -758,7 +782,7 @@
  /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> - /// <param name="searchOperator"></param> + /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>   /// <param name="baseOrgId"></param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <param name="name">The organization/group name (optional)</param> @@ -787,6 +811,30 @@
  Task<ApiResponse<SetCustomProfileFieldValuesResponse>> AdminApiSetCustomProfileFieldValuesAsyncWithHttpInfo(string accessToken, SetCustomProfileFieldValuesRequest request);     /// <summary> + /// Sets the Subscription Status on the Subscription. + /// </summary> + /// <remarks> + /// Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor. + /// </remarks> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="request">Contains subscription id and subscription status name</param> + /// <returns>Task of SetSubscriptionStatusResponse</returns> + Task<SetSubscriptionStatusResponse> AdminApiSetSubscriptionStatusAsync(string accessToken, SetSubscriptionStatusRequest request); + + /// <summary> + /// Sets the Subscription Status on the Subscription. + /// </summary> + /// <remarks> + /// Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor. + /// </remarks> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="request">Contains subscription id and subscription status name</param> + /// <returns>Task of ApiResponse (SetSubscriptionStatusResponse)</returns> + Task<ApiResponse<SetSubscriptionStatusResponse>> AdminApiSetSubscriptionStatusAsyncWithHttpInfo(string accessToken, SetSubscriptionStatusRequest request); + + /// <summary>   /// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> @@ -919,7 +967,7 @@
  }     /// <summary> - /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body. + /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains user's NexPort login credentials</param> @@ -931,7 +979,7 @@
  }     /// <summary> - /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body. + /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains user's NexPort login credentials</param> @@ -973,7 +1021,7 @@
  }     /// <summary> - /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body. + /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains user's NexPort login credentials</param> @@ -985,7 +1033,7 @@
  }     /// <summary> - /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body. + /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="request">Contains user's NexPort login credentials</param> @@ -3477,7 +3525,7 @@
  /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> - /// <param name="searchOperator"></param> + /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>   /// <param name="baseOrgId"></param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <param name="name">The organization/group name (optional)</param> @@ -3495,7 +3543,7 @@
  /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> - /// <param name="searchOperator"></param> + /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>   /// <param name="baseOrgId"></param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <param name="name">The organization/group name (optional)</param> @@ -3607,7 +3655,7 @@
  /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> - /// <param name="searchOperator"></param> + /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>   /// <param name="baseOrgId"></param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <param name="name">The organization/group name (optional)</param> @@ -3625,7 +3673,7 @@
  /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception> - /// <param name="searchOperator"></param> + /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>   /// <param name="baseOrgId"></param>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>   /// <param name="name">The organization/group name (optional)</param> @@ -3870,6 +3918,142 @@
  }     /// <summary> + /// Sets the Subscription Status on the Subscription. Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="request">Contains subscription id and subscription status name</param> + /// <returns>SetSubscriptionStatusResponse</returns> + public SetSubscriptionStatusResponse AdminApiSetSubscriptionStatus(string accessToken, SetSubscriptionStatusRequest request) + { + var localVarResponse = AdminApiSetSubscriptionStatusWithHttpInfo(accessToken, request); + return localVarResponse.Data; + } + + /// <summary> + /// Sets the Subscription Status on the Subscription. Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="request">Contains subscription id and subscription status name</param> + /// <returns>ApiResponse of SetSubscriptionStatusResponse</returns> + public ApiResponse<SetSubscriptionStatusResponse> AdminApiSetSubscriptionStatusWithHttpInfo(string accessToken, SetSubscriptionStatusRequest request) + { + // verify the required parameter 'accessToken' is set + if (accessToken == null) + throw new ApiException(400, "Missing required parameter 'accessToken' when calling AdminApi->AdminApiSetSubscriptionStatus"); + + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling AdminApi->AdminApiSetSubscriptionStatus"); + + var localVarRequestOptions = new RequestOptions(); + + var contentTypes = new[] { + "application/json", + "text/json" + }; + + // to determine the Accept header + var accepts = new[] { + "application/json", + "text/json" + }; + + var localVarContentType = ClientUtils.SelectHeaderContentType(contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = ClientUtils.SelectHeaderAccept(accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + foreach (var kvp in ClientUtils.ParameterToMultiMap("", "access_token", accessToken)) + { + foreach (var kvpValue in kvp.Value) + { + localVarRequestOptions.QueryParameters.Add(kvp.Key, kvpValue); + } + } + + localVarRequestOptions.Data = request; + + // make the HTTP request + var localVarResponse = Client.Post<SetSubscriptionStatusResponse>("/api/v1/AdminApi/SetSubscriptionStatus", localVarRequestOptions, Configuration); + + var exception = ExceptionFactory?.Invoke("AdminApiSetSubscriptionStatus", localVarResponse); + if (exception != null) throw exception; + + return localVarResponse; + } + + /// <summary> + /// Sets the Subscription Status on the Subscription. Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="request">Contains subscription id and subscription status name</param> + /// <returns>Task of SetSubscriptionStatusResponse</returns> + public async Task<SetSubscriptionStatusResponse> AdminApiSetSubscriptionStatusAsync(string accessToken, SetSubscriptionStatusRequest request) + { + var localVarResponse = await AdminApiSetSubscriptionStatusAsyncWithHttpInfo(accessToken, request); + return localVarResponse.Data; + } + + /// <summary> + /// Sets the Subscription Status on the Subscription. Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor. + /// </summary> + /// <exception cref="ApiException">Thrown when fails to make API call</exception> + /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> + /// <param name="request">Contains subscription id and subscription status name</param> + /// <returns>Task of ApiResponse (SetSubscriptionStatusResponse)</returns> + public async Task<ApiResponse<SetSubscriptionStatusResponse>> AdminApiSetSubscriptionStatusAsyncWithHttpInfo(string accessToken, SetSubscriptionStatusRequest request) + { + // verify the required parameter 'accessToken' is set + if (accessToken == null) + throw new ApiException(400, "Missing required parameter 'accessToken' when calling AdminApi->AdminApiSetSubscriptionStatus"); + + // verify the required parameter 'request' is set + if (request == null) + throw new ApiException(400, "Missing required parameter 'request' when calling AdminApi->AdminApiSetSubscriptionStatus"); + + var localVarRequestOptions = new RequestOptions(); + + var contentTypes = new[] { + "application/json", + "text/json" + }; + + // to determine the Accept header + var accepts = new[] { + "application/json", + "text/json" + }; + + foreach (var contentType in contentTypes) + localVarRequestOptions.HeaderParameters.Add("Content-Type", contentType); + + foreach (var accept in accepts) + localVarRequestOptions.HeaderParameters.Add("Accept", accept); + + foreach (var kvp in ClientUtils.ParameterToMultiMap("", "access_token", accessToken)) + { + foreach (var kvpValue in kvp.Value) + { + localVarRequestOptions.QueryParameters.Add(kvp.Key, kvpValue); + } + } + + localVarRequestOptions.Data = request; + + // make the HTTP request + var localVarResponse = await AsynchronousClient.PostAsync<SetSubscriptionStatusResponse>("/api/v1/AdminApi/SetSubscriptionStatus", localVarRequestOptions, Configuration); + + var exception = ExceptionFactory?.Invoke("AdminApiSetSubscriptionStatus", localVarResponse); + if (exception != null) throw exception; + + return localVarResponse; + } + + /// <summary>   /// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>
Show Entire File NexportApi/​Api/​LearningApi.cs Stacked
This file's diff was not loaded because this changeset is very large. Load changes
 
112
113
114
115
 
116
117
118
 
121
122
123
124
 
125
126
127
 
130
131
132
133
 
134
135
136
 
139
140
141
142
 
143
144
145
 
264
265
266
267
 
268
269
270
 
273
274
275
276
 
277
278
279
 
282
283
284
285
 
286
287
288
 
291
292
293
294
 
295
296
297
 
1114
1115
1116
1117
 
1118
1119
1120
 
1127
1128
1129
1130
 
1131
1132
1133
 
1182
1183
1184
1185
 
1186
1187
1188
 
1195
1196
1197
1198
 
1199
1200
1201
 
1250
1251
1252
1253
 
1254
1255
1256
 
1263
1264
1265
1266
 
1267
1268
1269
 
1318
1319
1320
1321
 
1322
1323
1324
 
1331
1332
1333
1334
 
1335
1336
1337
 
112
113
114
 
115
116
117
118
 
121
122
123
 
124
125
126
127
 
130
131
132
 
133
134
135
136
 
139
140
141
 
142
143
144
145
 
264
265
266
 
267
268
269
270
 
273
274
275
 
276
277
278
279
 
282
283
284
 
285
286
287
288
 
291
292
293
 
294
295
296
297
 
1114
1115
1116
 
1117
1118
1119
1120
 
1127
1128
1129
 
1130
1131
1132
1133
 
1182
1183
1184
 
1185
1186
1187
1188
 
1195
1196
1197
 
1198
1199
1200
1201
 
1250
1251
1252
 
1253
1254
1255
1256
 
1263
1264
1265
 
1266
1267
1268
1269
 
1318
1319
1320
 
1321
1322
1323
1324
 
1331
1332
1333
 
1334
1335
1336
1337
@@ -112,7 +112,7 @@
  ApiResponse<CommitInvoiceResponse> PointOfSaleApiCommitInvoiceTransactionWithHttpInfo(string accessToken, CommitInvoiceRequest request);     /// <summary> - /// Gets an invoice and it&#39;s list of invoice items&#39;. + /// Gets an invoice and it's list of invoice items.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceId"></param> @@ -121,7 +121,7 @@
  GetInvoiceResponse PointOfSaleApiGetInvoice(Guid invoiceId, string accessToken);     /// <summary> - /// Gets an invoice and it&#39;s list of invoice items&#39;. + /// Gets an invoice and it's list of invoice items.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceId"></param> @@ -130,7 +130,7 @@
  ApiResponse<GetInvoiceResponse> PointOfSaleApiGetInvoiceWithHttpInfo(Guid invoiceId, string accessToken);     /// <summary> - /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item&#39;s invoice organization or an ancestor. + /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceItemId"></param> @@ -139,7 +139,7 @@
  InvoiceRedemptionResponse PointOfSaleApiGetInvoiceRedemption(Guid invoiceItemId, string accessToken);     /// <summary> - /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item&#39;s invoice organization or an ancestor. + /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceItemId"></param> @@ -264,7 +264,7 @@
  Task<ApiResponse<CommitInvoiceResponse>> PointOfSaleApiCommitInvoiceTransactionAsyncWithHttpInfo(string accessToken, CommitInvoiceRequest request);     /// <summary> - /// Gets an invoice and it&#39;s list of invoice items&#39;. + /// Gets an invoice and it's list of invoice items.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceId"></param> @@ -273,7 +273,7 @@
  Task<GetInvoiceResponse> PointOfSaleApiGetInvoiceAsync(Guid invoiceId, string accessToken);     /// <summary> - /// Gets an invoice and it&#39;s list of invoice items&#39;. + /// Gets an invoice and it's list of invoice items.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceId"></param> @@ -282,7 +282,7 @@
  Task<ApiResponse<GetInvoiceResponse>> PointOfSaleApiGetInvoiceAsyncWithHttpInfo(Guid invoiceId, string accessToken);     /// <summary> - /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item&#39;s invoice organization or an ancestor. + /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceItemId"></param> @@ -291,7 +291,7 @@
  Task<InvoiceRedemptionResponse> PointOfSaleApiGetInvoiceRedemptionAsync(Guid invoiceItemId, string accessToken);     /// <summary> - /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item&#39;s invoice organization or an ancestor. + /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceItemId"></param> @@ -1114,7 +1114,7 @@
  }     /// <summary> - /// Gets an invoice and it&#39;s list of invoice items&#39;. + /// Gets an invoice and it's list of invoice items.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceId"></param> @@ -1127,7 +1127,7 @@
  }     /// <summary> - /// Gets an invoice and it&#39;s list of invoice items&#39;. + /// Gets an invoice and it's list of invoice items.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceId"></param> @@ -1182,7 +1182,7 @@
  }     /// <summary> - /// Gets an invoice and it&#39;s list of invoice items&#39;. + /// Gets an invoice and it's list of invoice items.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceId"></param> @@ -1195,7 +1195,7 @@
  }     /// <summary> - /// Gets an invoice and it&#39;s list of invoice items&#39;. + /// Gets an invoice and it's list of invoice items.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceId"></param> @@ -1250,7 +1250,7 @@
  }     /// <summary> - /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item&#39;s invoice organization or an ancestor. + /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceItemId"></param> @@ -1263,7 +1263,7 @@
  }     /// <summary> - /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item&#39;s invoice organization or an ancestor. + /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceItemId"></param> @@ -1318,7 +1318,7 @@
  }     /// <summary> - /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item&#39;s invoice organization or an ancestor. + /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceItemId"></param> @@ -1331,7 +1331,7 @@
  }     /// <summary> - /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item&#39;s invoice organization or an ancestor. + /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="invoiceItemId"></param>
 
23
24
25
26
 
27
28
29
 
32
33
34
35
 
36
37
38
 
71
72
73
74
 
75
76
77
 
80
81
82
83
 
84
85
86
 
227
228
229
230
 
231
232
233
 
240
241
242
243
 
244
245
246
 
295
296
297
298
 
299
300
301
 
308
309
310
311
 
312
313
314
 
23
24
25
 
26
27
28
29
 
32
33
34
 
35
36
37
38
 
71
72
73
 
74
75
76
77
 
80
81
82
 
83
84
85
86
 
227
228
229
 
230
231
232
233
 
240
241
242
 
243
244
245
246
 
295
296
297
 
298
299
300
301
 
308
309
310
 
311
312
313
314
@@ -23,7 +23,7 @@
  {   #region Synchronous Operations   /// <summary> - /// Edits data for a student&#39;s SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor. + /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -32,7 +32,7 @@
  EditScormDataResponse ScormApiEditScormData(string accessToken, EditScormDataRequest request);     /// <summary> - /// Edits data for a student&#39;s SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor. + /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -71,7 +71,7 @@
  {   #region Asynchronous Operations   /// <summary> - /// Edits data for a student&#39;s SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor. + /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -80,7 +80,7 @@
  Task<EditScormDataResponse> ScormApiEditScormDataAsync(string accessToken, EditScormDataRequest request);     /// <summary> - /// Edits data for a student&#39;s SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor. + /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -227,7 +227,7 @@
  }     /// <summary> - /// Edits data for a student&#39;s SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor. + /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -240,7 +240,7 @@
  }     /// <summary> - /// Edits data for a student&#39;s SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor. + /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -295,7 +295,7 @@
  }     /// <summary> - /// Edits data for a student&#39;s SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor. + /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param> @@ -308,7 +308,7 @@
  }     /// <summary> - /// Edits data for a student&#39;s SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor. + /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.   /// </summary>   /// <exception cref="ApiException">Thrown when fails to make API call</exception>   /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
 
397
398
399
400
 
401
402
403
 
397
398
399
 
400
401
402
403
@@ -397,7 +397,7 @@
  }     InterceptRequest(req); - var response = await client.ExecuteTaskAsync<T>(req); + var response = await client.ExecuteAsync<T>(req);   InterceptResponse(req, response);     var result = toApiResponse(response);
 
56
57
58
59
60
 
56
57
58
 
59
@@ -56,5 +56,4 @@
  ErrorContent = errorContent;   }   } -  }
 
8
9
10
11
12
13
 
14
15
16
 
8
9
10
 
11
12
13
14
15
16
@@ -8,9 +8,9 @@
  * Generated by: https://github.com/openapitools/openapi-generator.git   */   -using RestSharp;  using System;  using System.Collections.Generic; +using RestSharp;    namespace NexportApi.Client  {
 
26
27
28
29
30
31
32
33
34
 
35
36
37
38
39
40
41
42
 
 
 
43
44
45
 
64
65
66
67
68
69
70
 
83
84
85
86
87
88
89
90
91
 
92
93
94
95
96
97
98
99
 
 
 
100
101
102
 
105
106
107
 
108
109
110
111
 
112
113
114
 
26
27
28
 
 
 
 
 
 
29
30
 
 
 
 
 
 
 
31
32
33
34
35
36
 
55
56
57
 
58
59
60
 
73
74
75
 
 
 
 
 
 
76
77
 
 
 
 
 
 
 
78
79
80
81
82
83
 
86
87
88
89
90
91
92
 
93
94
95
96
@@ -26,20 +26,11 @@
  {   /// <summary>   /// Used to denote the kind of error that occurred, if any. - /// NoError=0; - /// UnknownError=1; - /// ValidationError=2; - /// ItemNotFound=3; - /// AuthenticationError=4; - /// AuthorizationError=5; + /// 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error   /// </summary> - /// <value>Used to denote the kind of error that occurred, if any. - /// NoError=0; - /// UnknownError=1; - /// ValidationError=2; - /// ItemNotFound=3; - /// AuthenticationError=4; - /// AuthorizationError=5; + /// <value> + /// Used to denote the kind of error that occurred, if any. + /// 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error   /// </value>   public enum ErrorCodeEnum   { @@ -64,7 +55,6 @@
  /// <summary>   /// Enum ItemNotFound for value: 3   /// </summary> - //[EnumMember(Value = "3")]   [Display(Name = "Item Not Found")]   ItemNotFound = 3,   @@ -83,20 +73,11 @@
    /// <summary>   /// Used to denote the kind of error that occurred, if any. - /// NoError=0; - /// UnknownError=1; - /// ValidationError=2; - /// ItemNotFound=3; - /// AuthenticationError=4; - /// AuthorizationError=5; + /// 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error   /// </summary> - /// <value>Used to denote the kind of error that occurred, if any. - /// NoError=0; - /// UnknownError=1; - /// ValidationError=2; - /// ItemNotFound=3; - /// AuthenticationError=4; - /// AuthorizationError=5; + /// <value> + /// Used to denote the kind of error that occurred, if any. + /// 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error   /// </value>   [DataMember(Name = "error_code", EmitDefaultValue = true)]   public ErrorCodeEnum ErrorCode { get; set; } @@ -105,10 +86,11 @@
  /// </summary>   [JsonConstructor]   protected ApiErrorEntity() { } +   /// <summary>   /// Initializes a new instance of the <see cref="ApiErrorEntity" /> class.   /// </summary> - /// <param name="errorCode">Used to denote the kind of error that occurred, if any. NoError=0; UnknownError=1; ValidationError=2; ItemNotFound=3; AuthenticationError=4; AuthorizationError=5; (required).</param> + /// <param name="errorCode">Used to denote the kind of error that occurred, if any. 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error (required).</param>   /// <param name="errorMessage">Message describing what caused the error to occur.</param>   public ApiErrorEntity(ErrorCodeEnum errorCode = default, string errorMessage = default)   {
 
141
142
143
144
 
145
146
147
148
149
150
151
152
153
 
210
211
212
213
 
214
215
216
217
218
219
220
 
221
222
223
 
231
232
233
234
 
235
236
237
238
239
240
241
 
242
243
244
 
382
383
384
385
386
 
387
388
389
390
391
 
392
393
394
 
445
446
447
448
449
450
451
 
 
452
453
454
 
141
142
143
 
144
145
146
147
148
149
 
150
151
152
 
209
210
211
 
212
213
214
215
216
217
218
 
219
220
221
222
 
230
231
232
 
233
234
235
236
237
238
239
 
240
241
242
243
 
381
382
383
 
 
384
385
386
387
 
 
388
389
390
391
 
442
443
444
 
 
 
 
445
446
447
448
449
@@ -141,13 +141,12 @@
  /// <param name="assignmentType">The type of assignment. Can be any of the following: Courseware Assignment; Discussion Assignment; Media Assignment; Quality Assurance Assignment; Swappable Assignment; Test Assignment; Survey Assignment; Writing Assignment; Student Input Assignment; (required).</param>   /// <param name="attemptLimit">For test assignments, how many attempts a student is allowed before they are no longer able to take the test.</param>   /// <param name="apiErrorEntity">apiErrorEntity (required).</param> - public AssignmentResponse(Guid assignmentId = default, string title = default, int pacingDurationHours = default, double weight = default, int dueDateDeduction = default, DueDateStrategyEnum? dueDateStrategy = default, DateTime utcDueDate = default, DateTime utcStartDate = default, int lockOutHours = default, DateTime? utcDateModified = default, DateTime? utcDateAdded = default, GradingStrategyEnum? gradingStrategy = default, double maxScore = default, double masteryScore = default, long? displayOrder = default, string assignmentType = default, int? attemptLimit = default, ApiErrorEntity apiErrorEntity = default) + public AssignmentResponse(Guid assignmentId = default, string title = default, int pacingDurationHours = default, double weight = default, int dueDateDeduction = default, DueDateStrategyEnum? dueDateStrategy = default, DateTime utcDueDate = default, DateTime utcStartDate = default, int lockOutHours = default, DateTime utcDateModified = default, DateTime utcDateAdded = default, GradingStrategyEnum? gradingStrategy = default, double maxScore = default, double masteryScore = default, long? displayOrder = default, string assignmentType = default, int? attemptLimit = default, ApiErrorEntity apiErrorEntity = default)   {   AssignmentId = assignmentId;     // to ensure "title" is required (not null)   Title = title ?? throw new InvalidDataException("title is a required property for AssignmentResponse and cannot be null"); -   PacingDurationHours = pacingDurationHours;   Weight = weight;   DueDateDeduction = dueDateDeduction; @@ -210,14 +209,14 @@
  /// </summary>   /// <value>When the assignment is due</value>   [DataMember(Name = "utc_due_date", EmitDefaultValue = false)] - public DateTime UtcDueDate { get; set; } + public DateTime? UtcDueDate { get; set; }     /// <summary>   /// When the assignment becomes available   /// </summary>   /// <value>When the assignment becomes available</value>   [DataMember(Name = "utc_start_date", EmitDefaultValue = false)] - public DateTime UtcStartDate { get; set; } + public DateTime? UtcStartDate { get; set; }     /// <summary>   /// The number of hours that must pass since the enrollment date before this assignment is available. @@ -231,14 +230,14 @@
  /// </summary>   /// <value>When the assignment was last modified</value>   [DataMember(Name = "utc_date_modified", EmitDefaultValue = false)] - public DateTime? UtcDateModified { get; set; } + public DateTime UtcDateModified { get; set; }     /// <summary>   /// When this assignment was added   /// </summary>   /// <value>When this assignment was added</value>   [DataMember(Name = "utc_date_added", EmitDefaultValue = false)] - public DateTime? UtcDateAdded { get; set; } + public DateTime UtcDateAdded { get; set; }     /// <summary>   /// The highest attainable score for this assignment @@ -382,13 +381,11 @@
  ) &&   (   UtcDateModified == input.UtcDateModified || - (UtcDateModified != null && - UtcDateModified.Equals(input.UtcDateModified)) + (UtcDateModified.Equals(input.UtcDateModified))   ) &&   (   UtcDateAdded == input.UtcDateAdded || - (UtcDateAdded != null && - UtcDateAdded.Equals(input.UtcDateAdded)) + (UtcDateAdded.Equals(input.UtcDateAdded))   ) &&   (   GradingStrategy == input.GradingStrategy || @@ -445,10 +442,8 @@
  if (UtcStartDate != null)   hashCode = hashCode * 59 + UtcStartDate.GetHashCode();   hashCode = hashCode * 59 + LockOutHours.GetHashCode(); - if (UtcDateModified != null) - hashCode = hashCode * 59 + UtcDateModified.GetHashCode(); - if (UtcDateAdded != null) - hashCode = hashCode * 59 + UtcDateAdded.GetHashCode(); + hashCode = hashCode * 59 + UtcDateModified.GetHashCode(); + hashCode = hashCode * 59 + UtcDateAdded.GetHashCode();   hashCode = hashCode * 59 + GradingStrategy.GetHashCode();   hashCode = hashCode * 59 + MaxScore.GetHashCode();   hashCode = hashCode * 59 + MasteryScore.GetHashCode();
 
41
42
43
44
45
46
47
 
48
49
50
 
 
 
51
52
53
 
132
133
134
135
 
 
136
137
138
 
183
184
185
186
187
 
41
42
43
 
 
 
 
44
45
46
47
48
49
50
51
52
53
 
132
133
134
 
135
136
137
138
139
 
184
185
186
 
187
@@ -41,13 +41,13 @@
  /// <param name="apiErrorEntity">apiErrorEntity (required).</param>   public AssignmentSessionsResponse(List<AssignmentSession> sessions = default, int page = default, int pageSize = default, int totalCount = default, ApiErrorEntity apiErrorEntity = default)   { - // to ensure "apiErrorEntity" is required (not null) - ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AssignmentSessionsResponse and cannot be null"); - - Sessions = sessions; + Sessions = sessions;   Page = page;   PageSize = pageSize;   TotalCount = totalCount; + + // to ensure "apiErrorEntity" is required (not null) + ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AssignmentSessionsResponse and cannot be null");   }     /// <summary> @@ -132,7 +132,8 @@
  return   (   Sessions == input.Sessions || - Sessions != null && Sessions.SequenceEqual(input.Sessions) + Sessions != null && + Sessions.SequenceEqual(input.Sessions)   ) &&   (   Page == input.Page || @@ -183,5 +184,4 @@
  yield break;   }   } -  }
 
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
 
 
92
93
94
95
96
97
 
98
99
100
101
102
 
 
 
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
 
 
138
139
140
 
146
147
148
149
150
 
 
151
152
153
154
155
 
161
162
163
 
 
 
 
 
 
 
164
165
 
166
167
168
 
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
 
 
 
 
 
 
 
 
 
 
187
188
189
 
201
202
203
204
205
206
207
208
209
210
211
212
213
 
285
286
287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
289
290
 
302
303
304
305
306
307
308
 
314
315
316
 
 
 
 
 
 
 
317
318
319
 
367
368
369
370
371
372
373
374
375
376
377
 
422
423
424
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
425
426
427
 
442
443
444
445
446
447
448
449
 
461
462
463
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
465
466
 
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
 
56
57
58
 
 
59
60
61
 
62
63
64
 
70
71
72
73
74
75
76
77
78
79
80
 
81
82
83
84
 
88
89
90
 
 
 
 
91
 
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
 
122
123
124
 
 
 
 
 
 
 
125
126
127
 
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
 
265
266
267
 
268
269
270
 
276
277
278
279
280
281
282
283
284
285
286
287
288
 
336
337
338
 
 
 
 
 
339
340
341
 
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
 
440
441
442
 
 
443
444
445
 
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
@@ -26,115 +26,25 @@
  {   /// <summary>   /// The state of an activity. - /// NotStarted=0; - /// InProgress=1; - /// Finished=2; - /// ToBeGraded=15; - /// ResubmitRequired=16; + /// 0 = Not Started, 1 = In Progress, 2 = Finished, 15 = To Be Graded, 16 = Resubmit Required   /// </summary> - /// <value>The state of an activity. - /// NotStarted=0; - /// InProgress=1; - /// Finished=2; - /// ToBeGraded=15; - /// ResubmitRequired=16; + /// <value> + /// The state of an activity. + /// 0 = Not Started, 1 = In Progress, 2 = Finished, 15 = To Be Graded, 16 = Resubmit Required   /// </value> - public enum PhaseEnum - { - /// <summary> - /// Enum NotStarted for value: 0 - /// </summary> - [Display(Name = "Not started")] - NotStarted = 0, - - /// <summary> - /// Enum InProgress for value: 1 - /// </summary> - [Display(Name = "In progress")] - InProgress = 1, - - /// <summary> - /// Enum Finished for value: 2 - /// </summary> - [Display(Name = "Finished")] - Finished = 2, - - /// <summary> - /// Enum ToBeGraded for value: 15 - /// </summary> - [Display(Name = "To be graded")] - ToBeGraded = 15, - - /// <summary> - /// Enum ResubmitRequired for value: 16 - /// </summary> - [Display(Name = "Resubmit required")] - ResubmitRequired = 16 - } - - /// <summary> - /// The state of an activity. - /// NotStarted=0; - /// InProgress=1; - /// Finished=2; - /// ToBeGraded=15; - /// ResubmitRequired=16; - /// </summary> - /// <value>The state of an activity. - /// NotStarted=0; - /// InProgress=1; - /// Finished=2; - /// ToBeGraded=15; - /// ResubmitRequired=16; - /// </value> - [DataMember(Name = "phase", EmitDefaultValue = true)] - public PhaseEnum Phase { get; set; } + [DataMember(Name = "phase", EmitDefaultValue = false)] + public Enums.PhaseEnum Phase { get; set; }     /// <summary>   /// When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. - /// NotGraded=0; - /// Passing=1; - /// Failing=2; + /// 0 = Not Graded, 1 = Passed, 2 = Failed   /// </summary> - /// <value>When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. - /// NotGraded=0; - /// Passing=1; - /// Failing=2; + /// <value> + /// When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. + /// 0 = Not Graded, 1 = Passed, 2 = Failed   /// </value> - public enum ResultEnum - { - /// <summary> - /// Enum NotGraded for value: 0 - /// </summary> - [Display(Name = "Not graded")] - NotGraded = 0, - - /// <summary> - /// Enum Passing for value: 1 - /// </summary> - [Display(Name = "Passing")] - Passing = 1, - - /// <summary> - /// Enum Failing for value: 2 - /// </summary> - [Display(Name = "Failing")] - Failing = 2 - } - - /// <summary> - /// When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. - /// NotGraded=0; - /// Passing=1; - /// Failing=2; - /// </summary> - /// <value>When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. - /// NotGraded=0; - /// Passing=1; - /// Failing=2; - /// </value> - [DataMember(Name = "result", EmitDefaultValue = true)] - public ResultEnum Result { get; set; } + [DataMember(Name = "result", EmitDefaultValue = false)] + public Enums.ResultEnum Result { get; set; }     /// <summary>   /// Initializes a new instance of the <see cref="AssignmentStatusResponseItem" /> class. @@ -146,10 +56,9 @@
  /// Initializes a new instance of the <see cref="AssignmentStatusResponseItem" /> class.   /// </summary>   /// <param name="assignmentStatusId">Id of the assignment status (required).</param> - /// <param name="phase">The state of an activity. NotStarted=0; InProgress=1; Finished=2; ToBeGraded=15; ResubmitRequired=16; (required).</param> - /// <param name="result">When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. NotGraded=0; Passing=1; Failing=2; (required).</param> + /// <param name="phase">The state of an activity. 0 = Not Started, 1 = In Progress, 2 = Finished, 15 = To Be Graded, 16 = Resubmit Required (required).</param> + /// <param name="result">When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. 0 = Not Graded, 1 = Passed, 2 = Failed (required).</param>   /// <param name="resubmitRequiredReason">Why the assignment must be resubmitted (if applicable).</param> - /// <param name="score">The score for this assignment or null if no score.</param>   /// <param name="academicOverride">True if this assignment has been academically overridden by an admin (required).</param>   /// <param name="academicOverrideReason">Why the assignment was academically overridden (if applicable).</param>   /// <param name="utcCreationDate">When this assignment status was created (required).</param> @@ -161,8 +70,15 @@
  /// <param name="assignmentId">Id of the assignment for this assignment status (required).</param>   /// <param name="enrollmentId">Id of the enrollment for this assignment status (required).</param>   /// <param name="userId">Id of the user tied to the assignment status enrollment (required).</param> + /// <param name="enrollmentScore">The Score of this enrollment.</param> + /// <param name="enrollmentMaxScore">The Max Score of this enrollment.</param> + /// <param name="assignmentScore">The Score of this assignment.</param> + /// <param name="assignmentMaxScore">The Max Score of this assignment.</param> + /// <param name="assignmentMasteryScore">The Mastery Score of this assignment.</param> + /// <param name="assignmentWeight">The Weight of this assignment.</param> + /// <param name="assignmentWeightedScore">The Weighted Score of this assignment.</param>   /// <param name="apiErrorEntity">apiErrorEntity (required).</param> - public AssignmentStatusResponseItem(Guid assignmentStatusId = default, PhaseEnum phase = default, ResultEnum result = default, string resubmitRequiredReason = default, int? score = default, bool academicOverride = default, string academicOverrideReason = default, DateTime utcCreationDate = default, DateTime? utcFirstActivityDate = default, DateTime? utcLastActivityDate = default, DateTime? utcCompletionDate = default, Guid? academicOverrideAdminId = default, Guid? gradeGivenById = default, Guid assignmentId = default, Guid enrollmentId = default, Guid userId = default, ApiErrorEntity apiErrorEntity = default) + public AssignmentStatusResponseItem(Guid assignmentStatusId = default, Enums.PhaseEnum phase = default, Enums.ResultEnum result = default, string resubmitRequiredReason = default, bool academicOverride = default, string academicOverrideReason = default, DateTime utcCreationDate = default, DateTime? utcFirstActivityDate = default, DateTime? utcLastActivityDate = default, DateTime? utcCompletionDate = default, Guid? academicOverrideAdminId = default, Guid? gradeGivenById = default, Guid assignmentId = default, Guid enrollmentId = default, Guid userId = default, int? enrollmentScore = default, double? enrollmentMaxScore = default, int? assignmentScore = default, double? assignmentMaxScore = default, double? assignmentMasteryScore = default, double? assignmentWeight = default, decimal? assignmentWeightedScore = default, ApiErrorEntity apiErrorEntity = default)   {   AssignmentStatusId = assignmentStatusId;   Phase = phase; @@ -172,18 +88,23 @@
  AssignmentId = assignmentId;   EnrollmentId = enrollmentId;   UserId = userId; - - // to ensure "apiErrorEntity" is required (not null) - ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AssignmentStatusResponseItem and cannot be null"); -   ResubmitRequiredReason = resubmitRequiredReason; - Score = score;   AcademicOverrideReason = academicOverrideReason;   UtcFirstActivityDate = utcFirstActivityDate;   UtcLastActivityDate = utcLastActivityDate;   UtcCompletionDate = utcCompletionDate;   AcademicOverrideAdminId = academicOverrideAdminId;   GradeGivenById = gradeGivenById; + EnrollmentScore = enrollmentScore; + EnrollmentMaxScore = enrollmentMaxScore; + AssignmentScore = assignmentScore; + AssignmentMaxScore = assignmentMaxScore; + AssignmentMasteryScore = assignmentMasteryScore; + AssignmentWeight = assignmentWeight; + AssignmentWeightedScore = assignmentWeightedScore; + + // to ensure "apiErrorEntity" is required (not null) + ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AssignmentStatusResponseItem and cannot be null");   }     /// <summary> @@ -201,13 +122,6 @@
  public string ResubmitRequiredReason { get; set; }     /// <summary> - /// The score for this assignment or null if no score - /// </summary> - /// <value>The score for this assignment or null if no score</value> - [DataMember(Name = "score", EmitDefaultValue = false)] - public int? Score { get; set; } - - /// <summary>   /// True if this assignment has been academically overridden by an admin   /// </summary>   /// <value>True if this assignment has been academically overridden by an admin</value> @@ -285,6 +199,55 @@
  public Guid UserId { get; set; }     /// <summary> + /// The Score of this enrollment + /// </summary> + /// <value>The Score of this enrollment</value> + [DataMember(Name = "enrollment_score", EmitDefaultValue = false)] + public int? EnrollmentScore { get; set; } + + /// <summary> + /// The Max Score of this enrollment + /// </summary> + /// <value>The Max Score of this enrollment</value> + [DataMember(Name = "enrollment_max_score", EmitDefaultValue = false)] + public double? EnrollmentMaxScore { get; set; } + + /// <summary> + /// The Score of this assignment + /// </summary> + /// <value>The Score of this assignment</value> + [DataMember(Name = "assignment_score", EmitDefaultValue = false)] + public int? AssignmentScore { get; set; } + + /// <summary> + /// The Max Score of this assignment + /// </summary> + /// <value>The Max Score of this assignment</value> + [DataMember(Name = "assignment_max_score", EmitDefaultValue = false)] + public double? AssignmentMaxScore { get; set; } + + /// <summary> + /// The Mastery Score of this assignment + /// </summary> + /// <value>The Mastery Score of this assignment</value> + [DataMember(Name = "assignment_mastery_score", EmitDefaultValue = false)] + public double? AssignmentMasteryScore { get; set; } + + /// <summary> + /// The Weight of this assignment + /// </summary> + /// <value>The Weight of this assignment</value> + [DataMember(Name = "assignment_weight", EmitDefaultValue = false)] + public double? AssignmentWeight { get; set; } + + /// <summary> + /// The Weighted Score of this assignment + /// </summary> + /// <value>The Weighted Score of this assignment</value> + [DataMember(Name = "assignment_weighted_score", EmitDefaultValue = false)] + public decimal? AssignmentWeightedScore { get; set; } + + /// <summary>   /// Gets or Sets ApiErrorEntity   /// </summary>   [DataMember(Name = "api_error_entity", EmitDefaultValue = false)] @@ -302,7 +265,6 @@
  sb.Append(" Phase: ").Append(Phase).Append("\n");   sb.Append(" Result: ").Append(Result).Append("\n");   sb.Append(" ResubmitRequiredReason: ").Append(ResubmitRequiredReason).Append("\n"); - sb.Append(" Score: ").Append(Score).Append("\n");   sb.Append(" AcademicOverride: ").Append(AcademicOverride).Append("\n");   sb.Append(" AcademicOverrideReason: ").Append(AcademicOverrideReason).Append("\n");   sb.Append(" UtcCreationDate: ").Append(UtcCreationDate).Append("\n"); @@ -314,6 +276,13 @@
  sb.Append(" AssignmentId: ").Append(AssignmentId).Append("\n");   sb.Append(" EnrollmentId: ").Append(EnrollmentId).Append("\n");   sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" EnrollmentScore: ").Append(EnrollmentScore).Append("\n"); + sb.Append(" EnrollmentMaxScore: ").Append(EnrollmentMaxScore).Append("\n"); + sb.Append(" AssignmentScore: ").Append(AssignmentScore).Append("\n"); + sb.Append(" AssignmentMaxScore: ").Append(AssignmentMaxScore).Append("\n"); + sb.Append(" AssignmentMasteryScore: ").Append(AssignmentMasteryScore).Append("\n"); + sb.Append(" AssignmentWeight: ").Append(AssignmentWeight).Append("\n"); + sb.Append(" AssignmentWeightedScore: ").Append(AssignmentWeightedScore).Append("\n");   sb.Append(" ApiErrorEntity: ").Append(ApiErrorEntity).Append("\n");   sb.Append("}\n");   return sb.ToString(); @@ -367,11 +336,6 @@
  ResubmitRequiredReason.Equals(input.ResubmitRequiredReason))   ) &&   ( - Score == input.Score || - (Score != null && - Score.Equals(input.Score)) - ) && - (   AcademicOverride == input.AcademicOverride ||   AcademicOverride.Equals(input.AcademicOverride)   ) && @@ -422,6 +386,40 @@
  (UserId.Equals(input.UserId))   ) &&   ( + EnrollmentScore == input.EnrollmentScore || + (EnrollmentScore != null && + EnrollmentScore.Equals(input.EnrollmentScore)) + ) && + ( + EnrollmentMaxScore == input.EnrollmentMaxScore || + (EnrollmentMaxScore != null && + EnrollmentMaxScore.Equals(input.EnrollmentMaxScore)) + ) && + ( + AssignmentScore == input.AssignmentScore || + (AssignmentScore != null && + AssignmentScore.Equals(input.AssignmentScore)) + ) && + ( + AssignmentMaxScore == input.AssignmentMaxScore || + (AssignmentMaxScore != null && + AssignmentMaxScore.Equals(input.AssignmentMaxScore)) + ) && + ( + AssignmentMasteryScore == input.AssignmentMasteryScore || + (AssignmentMasteryScore != null && + AssignmentMasteryScore.Equals(input.AssignmentMasteryScore)) + ) && + ( + AssignmentWeight == input.AssignmentWeight || + (AssignmentWeight != null && + AssignmentWeight.Equals(input.AssignmentWeight)) + ) && + ( + AssignmentWeightedScore == input.AssignmentWeightedScore || + AssignmentWeightedScore.Equals(input.AssignmentWeightedScore) + ) && + (   ApiErrorEntity.Equals(input.ApiErrorEntity) ||   (ApiErrorEntity != null &&   ApiErrorEntity.Equals(input.ApiErrorEntity)) @@ -442,8 +440,6 @@
  hashCode = hashCode * 59 + Result.GetHashCode();   if (ResubmitRequiredReason != null)   hashCode = hashCode * 59 + ResubmitRequiredReason.GetHashCode(); - if (Score != null) - hashCode = hashCode * 59 + Score.GetHashCode();   hashCode = hashCode * 59 + AcademicOverride.GetHashCode();   if (AcademicOverrideReason != null)   hashCode = hashCode * 59 + AcademicOverrideReason.GetHashCode(); @@ -461,6 +457,20 @@
  hashCode = hashCode * 59 + AssignmentId.GetHashCode();   hashCode = hashCode * 59 + EnrollmentId.GetHashCode();   hashCode = hashCode * 59 + UserId.GetHashCode(); + if (EnrollmentScore != null) + hashCode = hashCode * 59 + EnrollmentScore.GetHashCode(); + if (EnrollmentMaxScore != null) + hashCode = hashCode * 59 + EnrollmentMaxScore.GetHashCode(); + if (AssignmentScore != null) + hashCode = hashCode * 59 + AssignmentScore.GetHashCode(); + if (AssignmentMaxScore != null) + hashCode = hashCode * 59 + AssignmentMaxScore.GetHashCode(); + if (AssignmentMasteryScore != null) + hashCode = hashCode * 59 + AssignmentMasteryScore.GetHashCode(); + if (AssignmentWeight != null) + hashCode = hashCode * 59 + AssignmentWeight.GetHashCode(); + if (AssignmentWeightedScore != null) + hashCode = hashCode * 59 + AssignmentWeightedScore.GetHashCode();   if (ApiErrorEntity != null)   hashCode = hashCode * 59 + ApiErrorEntity.GetHashCode();   return hashCode;
 
46
47
48
49
50
51
52
 
46
47
48
 
49
50
51
@@ -46,7 +46,6 @@
    // to ensure "apiErrorEntity" is required (not null)   ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AuthenticationTokenResponse and cannot be null"); -   ExpiresIn = expiresIn;   }  
This file's diff was not loaded because this changeset is very large. Load changes
 
39
40
41
42
 
43
44
45
 
92
93
94
95
 
96
97
98
 
165
166
167
168
169
 
170
171
172
 
185
186
187
188
189
 
190
191
192
 
39
40
41
 
42
43
44
45
 
92
93
94
 
95
96
97
98
 
165
166
167
 
 
168
169
170
171
 
184
185
186
 
 
187
188
189
190
@@ -39,7 +39,7 @@
  /// <param name="orgId">Id of the organization in which the category belongs to (required).</param>   /// <param name="parentCategoryId">Id of the category's parent category (required).</param>   /// <param name="dateCreated">When this category was created.</param> - public CategoryResponseItem(Guid categoryId = default, string name = default, Guid catalogId = default, Guid orgId = default, Guid parentCategoryId = default, DateTime? dateCreated = default) + public CategoryResponseItem(Guid categoryId = default, string name = default, Guid catalogId = default, Guid orgId = default, Guid parentCategoryId = default, DateTime dateCreated = default)   {   CategoryId = categoryId;   @@ -92,7 +92,7 @@
  /// </summary>   /// <value>When this category was created</value>   [DataMember(Name = "date_created", EmitDefaultValue = false)] - public DateTime? DateCreated { get; set; } + public DateTime DateCreated { get; set; }     /// <summary>   /// Returns the string presentation of the object @@ -165,8 +165,7 @@
  ) &&   (   DateCreated == input.DateCreated || - (DateCreated != null && - DateCreated.Equals(input.DateCreated)) + (DateCreated.Equals(input.DateCreated))   );   }   @@ -185,8 +184,7 @@
  hashCode = hashCode * 59 + CatalogId.GetHashCode();   hashCode = hashCode * 59 + OrgId.GetHashCode();   hashCode = hashCode * 59 + ParentCategoryId.GetHashCode(); - if (DateCreated != null) - hashCode = hashCode * 59 + DateCreated.GetHashCode(); + hashCode = hashCode * 59 + DateCreated.GetHashCode();   return hashCode;   }   }
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
Show Entire File NexportApi/​Model/​Enums.cs Stacked
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
Show Entire File NexportApi/​Model/​SsoRequest.cs Stacked
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
This file's diff was not loaded because this changeset is very large. Load changes
Show Entire File NexportApi/​NexportApi.csproj Stacked
This file's diff was not loaded because this changeset is very large. Load changes