示例#1
0
        public static string Generate(TtrsDateTime dateTime)
        {
            var hashids = new Hashids(Configuration.BluemConfiguration.Config.HashSalt, Configuration.BluemConfiguration.Config.HashLength);

            return(hashids.EncodeLong(dateTime.Ticks) + dateTime.Iso8601Timestamp);
        }
示例#2
0
 public EntranceCode(TtrsDateTime dateTime)
 {
     _inner = Generate(dateTime);
 }