Adding trash api values when scanning a specific marker

This commit is contained in:
Nicolas SANS
2023-04-11 13:47:42 +02:00
parent af5acdae96
commit c092e3d426
32 changed files with 252 additions and 264 deletions

View File

@ -0,0 +1,27 @@
using System;
using System.IO;
using System.Net;
using models;
using UnityEngine;
using utils;
namespace services
{
public class TrashService
{
public static Trash GetTrash(String token, String id)
{
return Api<Trash>.get("/api/collections/trashs/records/"+id, token);
}
public static TrashList ListTrash(String token)
{
return Api<TrashList>.get("/api/collections/trashs/records/", token);
}
public static DataList ListTrashData(String token, String trashId)
{
return Api<DataList>.get("/api/collections/data/records/?trash_id="+trashId, token);
}
}
}