Example #1
0
 public QueueEntryInfo(DBQueueEntryJson dbTrackInfo, ulong addedBy, ulong guild, DateTimeOffset additionDate, int position)
 {
     DBTrackInfo  = dbTrackInfo;
     AdditionTime = additionDate;
     GuildId      = guild;
     Position     = position;
     AddedBy      = addedBy;
 }
Example #2
0
 public QueueEntryInfo(string dbTrackInfo, ulong addedBy, ulong guild, DateTimeOffset additionDate, int position)
 {
     DBTrackInfo  = JsonConvert.DeserializeObject <DBQueueEntryJson>(Encoding.UTF8.GetString(Convert.FromBase64String(dbTrackInfo)));
     AdditionTime = additionDate;
     GuildId      = guild;
     Position     = position;
     AddedBy      = addedBy;
 }