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)); }
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)); }