-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathServerDataRecord.cs
More file actions
53 lines (40 loc) · 1.31 KB
/
ServerDataRecord.cs
File metadata and controls
53 lines (40 loc) · 1.31 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Azure;
using Azure.Data.Tables;
namespace UnityGameServers
{
// This is the record for the Azure Storage Table
public class ServerDataRecord : ITableEntity
{
public string ID { get; set; }
public string IPAddress { get; set; }
public int Port { get; set; }
public string Scene { get; set; }
public int PlayerCount { get; set; }
public DateTime LastUpdateDate { get; set; }
public DateTime Date { get; set; }
public string PartitionKey { get; set; }
public string RowKey { get; set; }
public DateTimeOffset? Timestamp { get; set; }
public ETag ETag { get; set; }
public ServerDataRecord(string id, string ipaddress, int port, string scene, int playercount, DateTime savedate)
{
ID = id;
IPAddress = ipaddress;
Port = port;
Scene = scene;
PlayerCount = playercount;
LastUpdateDate = savedate;
Date = savedate;
PartitionKey = "UnityGameServer";
RowKey = id;
}
public ServerDataRecord()
{
}
}
}