C# 클래스 hubiquitus4w8.hapi.hStructures.HResult

Version 0.5 hAPI result. For more info, see Hubiquitus reference
상속: Newtonsoft.Json.Linq.JObject
파일 보기 프로젝트 열기: hubiquitus-old/hubiquitus4w8 1 사용 예제들

공개 메소드들

메소드 설명
GetResult ( ) : object

If we don't know the type of result.

GetResultASJArray ( ) : Newtonsoft.Json.Linq.JArray

If result type is JArray.

GetResultAsBoolean ( ) : bool?

If the result type is bool.

GetResultAsDouble ( ) : double?

If the result type is double.

GetResultAsInt ( ) : int?

If the result type is int.

GetResultAsJObject ( ) : Newtonsoft.Json.Linq.JObject

If result type is JObject.

GetResultAsString ( ) : string

If result type is string.

GetStatus ( ) : ResultStatus?

Get the status of the result. Null if undefined.

HResult ( ) : System
HResult ( Newtonsoft.Json.Linq.JObject jsonObj ) : System
SetResult ( Newtonsoft.Json.Linq.JArray result ) : void
SetResult ( Newtonsoft.Json.Linq.JObject result ) : void
SetResult ( JToken result ) : void

The result type could be JObject, JArray, String, Boolean, Number.

SetResult ( bool result ) : void
SetResult ( double result ) : void
SetResult ( int result ) : void
SetResult ( string result ) : void
SetStatus ( ResultStatus status ) : void

메소드 상세

GetResult() 공개 메소드

If we don't know the type of result.
public GetResult ( ) : object
리턴 object

GetResultASJArray() 공개 메소드

If result type is JArray.
public GetResultASJArray ( ) : Newtonsoft.Json.Linq.JArray
리턴 Newtonsoft.Json.Linq.JArray

GetResultAsBoolean() 공개 메소드

If the result type is bool.
public GetResultAsBoolean ( ) : bool?
리턴 bool?

GetResultAsDouble() 공개 메소드

If the result type is double.
public GetResultAsDouble ( ) : double?
리턴 double?

GetResultAsInt() 공개 메소드

If the result type is int.
public GetResultAsInt ( ) : int?
리턴 int?

GetResultAsJObject() 공개 메소드

If result type is JObject.
public GetResultAsJObject ( ) : Newtonsoft.Json.Linq.JObject
리턴 Newtonsoft.Json.Linq.JObject

GetResultAsString() 공개 메소드

If result type is string.
public GetResultAsString ( ) : string
리턴 string

GetStatus() 공개 메소드

Get the status of the result. Null if undefined.
public GetStatus ( ) : ResultStatus?
리턴 ResultStatus?

HResult() 공개 메소드

public HResult ( ) : System
리턴 System

HResult() 공개 메소드

public HResult ( Newtonsoft.Json.Linq.JObject jsonObj ) : System
jsonObj Newtonsoft.Json.Linq.JObject
리턴 System

SetResult() 공개 메소드

public SetResult ( Newtonsoft.Json.Linq.JArray result ) : void
result Newtonsoft.Json.Linq.JArray
리턴 void

SetResult() 공개 메소드

public SetResult ( Newtonsoft.Json.Linq.JObject result ) : void
result Newtonsoft.Json.Linq.JObject
리턴 void

SetResult() 공개 메소드

The result type could be JObject, JArray, String, Boolean, Number.
public SetResult ( JToken result ) : void
result JToken
리턴 void

SetResult() 공개 메소드

public SetResult ( bool result ) : void
result bool
리턴 void

SetResult() 공개 메소드

public SetResult ( double result ) : void
result double
리턴 void

SetResult() 공개 메소드

public SetResult ( int result ) : void
result int
리턴 void

SetResult() 공개 메소드

public SetResult ( string result ) : void
result string
리턴 void

SetStatus() 공개 메소드

public SetStatus ( ResultStatus status ) : void
status ResultStatus
리턴 void