C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
StatusReponse.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
2
4{
6 public class StatusResponse : APIType
7 {
9 [DataContract]
10 public enum LegacyStatus
11 {
13 [EnumMember(Value = "Unknown")]
14 Unknown = 0,
16 [EnumMember(Value = "Ready")]
19 [EnumMember(Value = "Uploading")]
22 [EnumMember(Value = "Processing")]
25 [EnumMember(Value = "Processing Successful")]
26 Success,
28 [EnumMember(Value = "Processing Failed")]
29 Failed
30 }
31
33 [DataMember(Order = 2, Name = "status")]
34 private LegacyStatus legacy_status
35 {
36 set
37 {
38 status = value == LegacyStatus.Unknown ? TaskStatus.Unknown :
39 value == LegacyStatus.Awaiting_Upload ? TaskStatus.Awaiting_Upload :
40 value == LegacyStatus.Uploading ? TaskStatus.Uploading :
41 value == LegacyStatus.Processing ? TaskStatus.Processing :
42 value == LegacyStatus.Success ? TaskStatus.Success :
43 value == LegacyStatus.Failed ? TaskStatus.Failed :
44 TaskStatus.Unknown;
45 }
46 }
47
49 [IgnoreDataMember]
50 public TaskStatus status { get; set; }
51
53 [DataMember(Order = 3)]
54 public long? bytes_uploaded { get; set; }
55
57 [DataMember(Order = 4)]
58 public long? total_bytes { get; set; }
59
62 [DataMember(Order = 5)]
63 public double? commit_progress { get; set; }
64
67 [DataMember(Order = 6)]
68 public string commit_error { get; set; }
69 }
70}
Base class used by all types and resources.
Definition APIType.cs:8
Indicates the status of a data endpoint.
double? commit_progress
If the file is being processed, this is the percentage completion of the processing task.
LegacyStatus
The status of a data upload which may be in progress.
@ Awaiting_Upload
No data upload has been initiated. Ready for upload.
@ Uploading
Data upload has been initiated, but not yet committed.
@ Success
Data has already been uploaded and successfully processed.
@ Processing
Data has already been uploaded and is being processed.
@ Unknown
Cannot determine the status of this data endpoint.
@ Failed
Data has already been uploaded but failed processing.
TaskStatus status
The state of the data upload, as an enumeration.
string commit_error
If the processing of the file failed, the error message reported by the server.
long? bytes_uploaded
The number of bytes that have been uploaded by the client so far.
long? total_bytes
Total number of bytes in the file to be uploaded.
TaskStatus
The status of a data upload which may be in progress.
Definition TaskStatus.cs:9