public static string[] ToStrings(ChainTypes.VoteType voteType, uint[] ids) { var result = new string[ids.Length]; for (var i = 0; i < ids.Length; i++) { result[i] = ToString(voteType, ids[i]); } return(result); }
public static string ToString(ChainTypes.VoteType voteType, uint id) { return(((byte)voteType).ToString() + TYPE_SEPARATOR + id); }
public static VoteId Create(ChainTypes.VoteType voteType, uint id = uint.MinValue) => Create(ToString(voteType, id));