HRM_RabbitMQ_Consumer/JSONParser/Structure/Entity.cs

34 lines
795 B
C#

using Simple.OData.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
namespace JSONParser.Structure
{
public class Entity
{
public string Type { get; set; }
public string Sid { get; set; }
public long? DirectumId { get; set; }
public virtual string Serialize()
{
return JsonSerializer.Serialize(this);
}
public virtual Task<long> Create(ODataClient client)
{
throw new NotImplementedException();
}
public virtual Task<long> Update(ODataClient client, long id)
{
throw new NotImplementedException();
}
}
}