Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ApplicationReview.cs
1using System;
2
4{
8 public sealed class ApplicationReview
9 {
13 public string Message { get; set; } = string.Empty;
14
18 public string? Code { get; set; }
19
23 public DateTime ReceivedUtc { get; set; } = DateTime.UtcNow;
24
28 public string[] InvalidClaims { get; set; } = Array.Empty<string>();
29
34
38 public string[] InvalidPhotos { get; set; } = Array.Empty<string>();
39
44
48 public string[] UnvalidatedClaims { get; set; } = Array.Empty<string>();
49
53 public string[] UnvalidatedPhotos { get; set; } = Array.Empty<string>();
54 }
55
59 public sealed class ApplicationReviewClaimDetail
60 {
65 {
66 }
67
76 public ApplicationReviewClaimDetail(string claim, string reason, string? reasonLanguage, string? reasonCode, string? service)
77 {
78 this.Claim = claim;
79 this.DisplayName = claim;
80 this.Reason = reason;
81 this.ReasonLanguage = reasonLanguage;
82 this.ReasonCode = reasonCode;
83 this.Service = service;
84 }
85
89 public string Claim { get; set; } = string.Empty;
90
94 public string DisplayName { get; set; } = string.Empty;
95
99 public string Reason { get; set; } = string.Empty;
100
104 public string? ReasonLanguage { get; set; }
105
109 public string? ReasonCode { get; set; }
110
114 public string? Service { get; set; }
115 }
116
121 {
126 {
127 }
128
138 public ApplicationReviewPhotoDetail(string fileName, string displayName, string reason, string? reasonLanguage, string? reasonCode, string? service)
139 {
140 this.FileName = fileName;
141 this.DisplayName = displayName;
142 this.Reason = reason;
143 this.ReasonLanguage = reasonLanguage;
144 this.ReasonCode = reasonCode;
145 this.Service = service;
146 }
147
151 public string FileName { get; set; } = string.Empty;
152
156 public string DisplayName { get; set; } = string.Empty;
157
161 public string Reason { get; set; } = string.Empty;
162
166 public string? ReasonLanguage { get; set; }
167
171 public string? ReasonCode { get; set; }
172
176 public string? Service { get; set; }
177 }
178}
Contains additional data about an invalid claim.
ApplicationReviewClaimDetail()
Initializes a new instance of the ApplicationReviewClaimDetail class.
string? ReasonLanguage
Language code of the reason, if provided.
ApplicationReviewClaimDetail(string claim, string reason, string? reasonLanguage, string? reasonCode, string? service)
Initializes a new instance of the ApplicationReviewClaimDetail class.
string? ReasonCode
Machine readable reason code, if provided.
string DisplayName
Localized display name for the claim.
string Reason
The textual reason explaining the invalidation.
Captures the result of an application review returned from backend services.
ApplicationReviewPhotoDetail[] InvalidPhotoDetails
Optional details about invalid photos.
string[] InvalidPhotos
Invalid photo identifiers reported by the service.
string[] InvalidClaims
Invalid claim identifiers reported by the service.
DateTime ReceivedUtc
Moment when the review was received.
string? Code
Optional machine readable code identifying the review reason.
string[] UnvalidatedPhotos
Photos still pending validation.
string Message
The localized or raw message describing the review result.
string[] UnvalidatedClaims
Claims still pending validation.
ApplicationReviewClaimDetail[] InvalidClaimDetails
Optional details about invalid claims.
Contains additional data about an invalid photo.
string? ReasonCode
Machine readable reason code, if provided.
string? ReasonLanguage
Language code of the reason, if provided.
ApplicationReviewPhotoDetail()
Initializes a new instance of the ApplicationReviewPhotoDetail class.
ApplicationReviewPhotoDetail(string fileName, string displayName, string reason, string? reasonLanguage, string? reasonCode, string? service)
Initializes a new instance of the ApplicationReviewPhotoDetail class.