blob: 40df822f6b4dd8390b689c8dd25a71a779bfee51 [file] [log] [blame]
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace oneM2MClient.Utils.ResultHandling
{
public interface IResult
{
Type EntityType { get; }
object EntityObject { get; }
bool Success { get; }
List<IMessage> Messages { get; }
T GetEntity<T>();
}
public interface IResult<TEntity> : IResult
{
[JsonConverter(typeof(CustomTypeSerializer))]
TEntity Entity { get; }
}
}