Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static string ToString(ChainTypes.VoteType voteType, uint id)
 {
     return(((byte)voteType).ToString() + TYPE_SEPARATOR + id);
 }
Beispiel #3
0
 public static VoteId Create(ChainTypes.VoteType voteType, uint id = uint.MinValue) => Create(ToString(voteType, id));