C# 클래스 gdapi.Resource

Represents a Resource from the API. This class is usually automatically populated by ResourceConverter from the returned JSON string.
파일 보기 프로젝트 열기: godaddy/gdapi-csharp 1 사용 예제들

공개 메소드들

메소드 설명
getLink ( string name ) : string

Gets the current link if it exists.

getProperties ( ) : string>.Dictionary

Gets the properties of the Resource.

getProperty ( string propertyName ) : string

Gets the current property value

getType ( ) : String

Gets the type of the Resource

hasLink ( string name ) : bool

Determins if a Resource currently has a link.

hasProperty ( string propertyName ) : bool
setProperties ( string>.Dictionary properties ) : void

Sets the properties of the Resource.

setProperty ( string key, string value ) : void

Sets the property of a resource

setType ( string type ) : void

Sets the type of the Resource

메소드 상세

getLink() 공개 메소드

Gets the current link if it exists.
public getLink ( string name ) : string
name string Link to fetch
리턴 string

getProperties() 공개 메소드

Gets the properties of the Resource.
public getProperties ( ) : string>.Dictionary
리턴 string>.Dictionary

getProperty() 공개 메소드

Gets the current property value
public getProperty ( string propertyName ) : string
propertyName string Name of property to get
리턴 string

getType() 공개 메소드

Gets the type of the Resource
public getType ( ) : String
리턴 String

hasLink() 공개 메소드

Determins if a Resource currently has a link.
public hasLink ( string name ) : bool
name string Link to check
리턴 bool

hasProperty() 공개 메소드

public hasProperty ( string propertyName ) : bool
propertyName string
리턴 bool

setProperties() 공개 메소드

Sets the properties of the Resource.
public setProperties ( string>.Dictionary properties ) : void
properties string>.Dictionary Properties dictionary to update the internal properties of the resource with.
리턴 void

setProperty() 공개 메소드

Sets the property of a resource
public setProperty ( string key, string value ) : void
key string Property name to set
value string Property value to set
리턴 void

setType() 공개 메소드

Sets the type of the Resource
public setType ( string type ) : void
type string Resource type
리턴 void