C# Класс Halcyon.HAL.HALResponse

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddEmbeddedCollection ( string name, IEnumerable objects ) : HALResponse
AddEmbeddedResource ( string name, HALResponse resource ) : HALResponse
AddLinks ( IEnumerable links ) : HALResponse
HALResponse ( IHALModelConfig config ) : System
HALResponse ( object model, IHALModelConfig config = null ) : System
HasLink ( string rel ) : bool
ToJObject ( JsonSerializer serializer ) : Newtonsoft.Json.Linq.JObject
ToPlainResponse ( JsonSerializer serializer, bool attachEmbedded = true ) : Newtonsoft.Json.Linq.JObject

Приватные методы

Метод Описание
EmbeddedToJObject ( JObject>.Func converter ) : Newtonsoft.Json.Linq.JObject
GetBaseJObject ( JsonSerializer serializer ) : Newtonsoft.Json.Linq.JObject
GetResolvedLinks ( IEnumerable links, object>.IDictionary properties, string linkBase ) : object>.Dictionary

Описание методов

AddEmbeddedCollection() публичный Метод

public AddEmbeddedCollection ( string name, IEnumerable objects ) : HALResponse
name string
objects IEnumerable
Результат HALResponse

AddEmbeddedResource() публичный Метод

public AddEmbeddedResource ( string name, HALResponse resource ) : HALResponse
name string
resource HALResponse
Результат HALResponse

AddLinks() публичный Метод

public AddLinks ( IEnumerable links ) : HALResponse
links IEnumerable
Результат HALResponse

HALResponse() публичный Метод

public HALResponse ( IHALModelConfig config ) : System
config IHALModelConfig
Результат System

HALResponse() публичный Метод

public HALResponse ( object model, IHALModelConfig config = null ) : System
model object
config IHALModelConfig
Результат System

HasLink() публичный Метод

public HasLink ( string rel ) : bool
rel string
Результат bool

ToJObject() публичный Метод

public ToJObject ( JsonSerializer serializer ) : Newtonsoft.Json.Linq.JObject
serializer Newtonsoft.Json.JsonSerializer
Результат Newtonsoft.Json.Linq.JObject

ToPlainResponse() публичный Метод

public ToPlainResponse ( JsonSerializer serializer, bool attachEmbedded = true ) : Newtonsoft.Json.Linq.JObject
serializer Newtonsoft.Json.JsonSerializer
attachEmbedded bool
Результат Newtonsoft.Json.Linq.JObject