コード例 #1
0
    public static Directory From(string content)
    {
        var id    = OperationalMessagePartsBuilder.IdFrom(content);
        var name  = OperationalMessagePartsBuilder.NameFrom(content);
        var nodes = OperationalMessagePartsBuilder.NodesFrom(content);

        return(new Directory(id, name, nodes));
    }
コード例 #2
0
    public static ApplicationSays From(string content)
    {
        var id      = OperationalMessagePartsBuilder.IdFrom(content);
        var name    = OperationalMessagePartsBuilder.NameFrom(content);
        var saysId  = OperationalMessagePartsBuilder.SaysIdFrom(content);
        var payload = OperationalMessagePartsBuilder.PayloadFrom(content);

        return(new ApplicationSays(id, name, saysId, payload));
    }