C# 클래스 Mycroft.Messages.App.AppManifest

상속: AppBase
파일 보기 프로젝트 열기: rit-sse-mycroft/core 1 사용 예제들

공개 메소드들

메소드 설명
Deserialize ( string json ) : DataPacket

Returns a new AppManifest from the given json. If a property is not given in the json then the instance variable to which it corresponds is set to null. Capabilities will always be non-null, but may be empty Dependencies will always be non-null, but also may be empty If API was not supplied it is set to -1, since ints cannot be nulled

Serialize ( ) : string

비공개 메소드들

메소드 설명
TryGetValueFromDynamic ( dynamic obj, string key ) : object

Try to get a value from a dynamic object

Validate ( AppManifest manifest ) : void

Validate a given manifest. If the manifest is invalid a ParseException is thrown. The Received property of that exception is set to an empty string, and should be set by the caller that knows about the json that was parsed.

메소드 상세

Deserialize() 공개 정적인 메소드

Returns a new AppManifest from the given json. If a property is not given in the json then the instance variable to which it corresponds is set to null. Capabilities will always be non-null, but may be empty Dependencies will always be non-null, but also may be empty If API was not supplied it is set to -1, since ints cannot be nulled
public static Deserialize ( string json ) : DataPacket
json string the manifest json to parse
리턴 DataPacket

Serialize() 공개 메소드

public Serialize ( ) : string
리턴 string