28 lines
724 B
C#
28 lines
724 B
C#
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/?filter=(trash_id=\"" + trashId +"\")&sort=-created", token);
|
|
|
|
}
|
|
}
|
|
} |