Repository navigation
Expand file tree
/
Copy pathDataModel.cs
More file actions
74 lines (58 loc) · 1.49 KB
/
Copy pathDataModel.cs
File metadata and controls
74 lines (58 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using RESTClient;
using System;
using UnityEngine;
namespace Azure.AppServices {
[Serializable]
public abstract class DataModel : IDataModel {
[SerializeField]
public string id;
public string GetId() {
return id;
}
public void SetId(string id) {
this.id = id;
}
// System Properties (read only)
[SerializeField]
private string createdAt;
private DateTime? _createdAt;
public DateTime? CreatedAt() {
if (_createdAt == null) {
_createdAt = Convert.ToDateTime(createdAt);
}
return _createdAt;
}
[SerializeField]
private string updatedAt;
private DateTime? _updatedAt;
public DateTime? UpdatedAt() {
if (_updatedAt == null) {
_updatedAt = Convert.ToDateTime(updatedAt);
}
return _updatedAt;
}
[SerializeField]
private string version;
public string Version() {
return version;
}
[SerializeField]
private bool deleted;
public bool Deleted() {
return deleted;
}
[SerializeField]
private string ROW_NUMBER;
public uint RowNumber() {
return Convert.ToUInt32(ROW_NUMBER, 10);
}
public override string ToString() {
return JsonUtility.ToJson(this);
}
public string ToJSON() {
return JsonHelper.ToJsonExcludingSystemProperties(this);
}
}
}