2016-11-15 11:01:02 +00:00
|
|
|
|
using System.Collections.Generic;
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Services.Database.Models
|
|
|
|
|
{
|
2016-12-24 05:21:51 +00:00
|
|
|
|
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public class LogSetting : DbEntity
|
|
|
|
|
{
|
2016-12-24 05:21:51 +00:00
|
|
|
|
public HashSet<IgnoredLogChannel> IgnoredChannels { get; set; } = new HashSet<IgnoredLogChannel>();
|
|
|
|
|
public HashSet<IgnoredVoicePresenceChannel> IgnoredVoicePresenceChannelIds { get; set; } = new HashSet<IgnoredVoicePresenceChannel>();
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
public ulong? LogOtherId { get; set; } = null;
|
|
|
|
|
public ulong? MessageUpdatedId { get; set; } = null;
|
|
|
|
|
public ulong? MessageDeletedId { get; set; } = null;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
public ulong? UserJoinedId { get; set; } = null;
|
|
|
|
|
public ulong? UserLeftId { get; set; } = null;
|
|
|
|
|
public ulong? UserBannedId { get; set; } = null;
|
|
|
|
|
public ulong? UserUnbannedId { get; set; } = null;
|
|
|
|
|
public ulong? UserUpdatedId { get; set; } = null;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
public ulong? ChannelCreatedId { get; set; } = null;
|
|
|
|
|
public ulong? ChannelDestroyedId { get; set; } = null;
|
|
|
|
|
public ulong? ChannelUpdatedId { get; set; } = null;
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
2016-12-24 05:21:51 +00:00
|
|
|
|
public ulong? UserMutedId { get; set; }
|
|
|
|
|
|
2016-09-05 10:27:58 +00:00
|
|
|
|
//userpresence
|
2016-12-12 23:44:52 +00:00
|
|
|
|
public ulong? LogUserPresenceId { get; set; } = null;
|
2016-09-05 10:27:58 +00:00
|
|
|
|
|
|
|
|
|
//voicepresence
|
2016-12-24 05:21:51 +00:00
|
|
|
|
|
2016-12-12 23:44:52 +00:00
|
|
|
|
public ulong? LogVoicePresenceId { get; set; } = null;
|
|
|
|
|
public ulong? LogVoicePresenceTTSId { get; set; } = null;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//-------------------DO NOT USE----------------
|
|
|
|
|
// these old fields are here because sqlite doesn't support drop column operation
|
|
|
|
|
// will be removed after bot moves to another database provider
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool IsLogging { get; set; }
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public ulong ChannelId { get; set; }
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-06 01:59:00 +00:00
|
|
|
|
public bool MessageUpdated { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-06 01:59:00 +00:00
|
|
|
|
public bool MessageDeleted { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool UserJoined { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool UserLeft { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool UserBanned { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool UserUnbanned { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool UserUpdated { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool ChannelCreated { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool ChannelDestroyed { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool ChannelUpdated { get; set; } = true;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool LogUserPresence { get; set; } = false;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public ulong UserPresenceChannelId { get; set; }
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public bool LogVoicePresence { get; set; } = false;
|
2016-12-24 05:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DON'T USE
|
|
|
|
|
/// </summary>
|
2016-09-05 10:27:58 +00:00
|
|
|
|
public ulong VoicePresenceChannelId { get; set; }
|
|
|
|
|
}
|
2016-12-24 05:21:51 +00:00
|
|
|
|
}
|