C# Класс Mycroft.Messages.App.AppManifest

Наследование: AppBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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