public QueueEntryInfo(DBQueueEntryJson dbTrackInfo, ulong addedBy, ulong guild, DateTimeOffset additionDate, int position) { DBTrackInfo = dbTrackInfo; AdditionTime = additionDate; GuildId = guild; Position = position; AddedBy = addedBy; }
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; }