C# Class Halcyon.HAL.HALResponse

Afficher le fichier Open project: visualeyes/halcyon Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddEmbeddedCollection() public méthode

public AddEmbeddedCollection ( string name, IEnumerable objects ) : HALResponse
name string
objects IEnumerable
Résultat HALResponse

AddEmbeddedResource() public méthode

public AddEmbeddedResource ( string name, HALResponse resource ) : HALResponse
name string
resource HALResponse
Résultat HALResponse

AddLinks() public méthode

public AddLinks ( IEnumerable links ) : HALResponse
links IEnumerable
Résultat HALResponse

HALResponse() public méthode

public HALResponse ( IHALModelConfig config ) : System
config IHALModelConfig
Résultat System

HALResponse() public méthode

public HALResponse ( object model, IHALModelConfig config = null ) : System
model object
config IHALModelConfig
Résultat System

HasLink() public méthode

public HasLink ( string rel ) : bool
rel string
Résultat bool

ToJObject() public méthode

public ToJObject ( JsonSerializer serializer ) : Newtonsoft.Json.Linq.JObject
serializer Newtonsoft.Json.JsonSerializer
Résultat Newtonsoft.Json.Linq.JObject

ToPlainResponse() public méthode

public ToPlainResponse ( JsonSerializer serializer, bool attachEmbedded = true ) : Newtonsoft.Json.Linq.JObject
serializer Newtonsoft.Json.JsonSerializer
attachEmbedded bool
Résultat Newtonsoft.Json.Linq.JObject