Adding trash api values when scanning a specific marker
This commit is contained in:
27
AR/Assets/services/TrashService.cs
Normal file
27
AR/Assets/services/TrashService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user