Adding AR folder

This commit is contained in:
Nicolas SANS
2023-03-21 11:46:52 +01:00
parent e56b92aa7b
commit 781c1b4097
19 changed files with 275 additions and 0 deletions

29
AR/models/Data.cs Normal file
View File

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace models
{
[Serializable]
public class Data
{
public String id;
public String collectionId;
public String collectionName;
public DateTime created;
public DateTime updated;
public int value;
public String trash_id;
public String unit;
public Boolean status;
}
[Serializable]
public class DataList
{
public int page;
public int perPage;
public int totalPages;
public int totalItems;
public List<Data> items;
}
}

3
AR/models/Data.cs.meta Normal file
View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f9c778b8c2f64792bbbb0aac4cbe431c
timeCreated: 1679392634

41
AR/models/LoginDto.cs Normal file
View File

@ -0,0 +1,41 @@
using System;
namespace models
{
[Serializable]
public class LoginRequest
{
public String identity;
public String password;
public LoginRequest(string identity, string password)
{
this.identity = identity;
this.password = password;
}
}
[Serializable]
public class LoginResponse
{
public Record record;
public string token;
[Serializable]
public class Record
{
public string avatar;
public string collectionId;
public string collectionName;
public string created;
public string email;
public bool emailVisibility;
public string id;
public string name;
public string updated;
public string username;
public bool verified;
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: bb7db611010e4a4ea253408f8f639da1
timeCreated: 1679384960

27
AR/models/Trash.cs Normal file
View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace models
{
[Serializable]
public class Trash
{
public string collectionId;
public string collectionName;
public string created;
public string id;
public string owner;
public string updated;
public List<Data> data;
}
[Serializable]
public class TrashList
{
public int page;
public int perPage;
public int totalItems;
public int totalPages;
public Trash[] items;
}
}

3
AR/models/Trash.cs.meta Normal file
View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d491b601d266438383bff39599d5b2a1
timeCreated: 1679385878