C# Class Sage.Integration.Northwind.Adapter.Common.ResourceKindHelpers

Mostrar archivo Open project: Sage/SData-Contracts

Public Methods

Method Description
GetAllResourcePayloadTypes ( ) : Type>.Dictionary

Returns a dictionary mapping all SupportedResourceKinds with their Payload types

GetPayloadType ( SupportedResourceKinds resourceKind ) : Type

Returns the payload type for a given resource kind type

GetResourceKind ( string payloadPath ) : SupportedResourceKinds
GetSingleResourceUrl ( string baseUrl, string payloadpath, string id ) : string

Method Details

GetAllResourcePayloadTypes() public static method

Returns a dictionary mapping all SupportedResourceKinds with their Payload types
public static GetAllResourcePayloadTypes ( ) : Type>.Dictionary
return Type>.Dictionary

GetPayloadType() public static method

Returns the payload type for a given resource kind type
public static GetPayloadType ( SupportedResourceKinds resourceKind ) : Type
resourceKind SupportedResourceKinds
return System.Type

GetResourceKind() public static method

public static GetResourceKind ( string payloadPath ) : SupportedResourceKinds
payloadPath string
return SupportedResourceKinds

GetSingleResourceUrl() public static method

public static GetSingleResourceUrl ( string baseUrl, string payloadpath, string id ) : string
baseUrl string
payloadpath string
id string
return string