| 1 |
using System; |
| 2 |
using System.Collections.Generic; |
| 3 |
using System.Linq; |
| 4 |
using System.Text; |
| 5 |
using System.Windows.Forms; |
| 6 |
|
| 7 |
namespace Aqua877.WinApp.IronLivetube |
| 8 |
{ |
| 9 |
public enum LivetubeServers |
| 10 |
{ |
| 11 |
Large03, |
| 12 |
Large04, |
| 13 |
Large05, |
| 14 |
H, |
| 15 |
Tes01, |
| 16 |
Default |
| 17 |
}; |
| 18 |
|
| 19 |
public enum ShortenSites |
| 20 |
{ |
| 21 |
Auto, |
| 22 |
BitLy, |
| 23 |
JMp, |
| 24 |
IsGd, |
| 25 |
UxNu, |
| 26 |
PTl |
| 27 |
} |
| 28 |
|
| 29 |
public class SoundEffectRule |
| 30 |
{ |
| 31 |
public string SoundFilePath { get; set; } |
| 32 |
public string PlaySoundEffectCondition { get; set; } |
| 33 |
public bool ExactMatch { get; set; } |
| 34 |
public bool IsUseRegularExpression { get; set; } |
| 35 |
} |
| 36 |
|
| 37 |
[Serializable] |
| 38 |
public class Settings |
| 39 |
{ |
| 40 |
public string[] CredentialData = new string[] { }; |
| 41 |
public string LivetubeUserID = ""; |
| 42 |
public string LivetubePassword = ""; |
| 43 |
public bool IsPlayNotifySound = false; |
| 44 |
public string NotifySoundPath = ""; |
| 45 |
public bool IsShowCommentAnchor = false; |
| 46 |
public bool IsShowAllComments = true; |
| 47 |
public int ShowCommentCount = 0; |
| 48 |
public bool IsSelectServer = false; |
| 49 |
public LivetubeServers SelectedServer = LivetubeServers.Default; |
| 50 |
public bool IsUseShortenURLSite; |
| 51 |
|
| 52 |
public bool IsEnableAutoBanContinuousComments; |
| 53 |
|
| 54 |
|
| 55 |
public bool IsShowWindowMostTop = false; |
| 56 |
public bool IsEnableSemitransparentMode = true; |
| 57 |
public bool IsEnablePutWindowIntoTaskTrayCheckBox = false; |
| 58 |
public bool IsLockSortOrder = false; |
| 59 |
public SortOrder CommentsSortOrder = SortOrder.Ascending; |
| 60 |
public bool IsShowGridLines = false; |
| 61 |
public bool IsEnableAutoScroll = true; |
| 62 |
|
| 63 |
public bool IsEnableCommand = false; |
| 64 |
public bool IsUseReplaceCommand = false; |
| 65 |
public bool IsDisableCommandForShortlyString = true; |
| 66 |
public bool IsNotifyWhenCommandExecuted = true; |
| 67 |
public bool IsReflectCommandForWordAddedByUser = true; |
| 68 |
public bool IsUseUnreplaceCommand = false; |
| 69 |
public bool IsUseVoteBanCommand = false; |
| 70 |
public uint ExecuteCommandBorder = 10; |
| 71 |
public bool IsCheckOverlapByIDAndHost = true; |
| 72 |
public bool IsSetValidityPeriod = true; |
| 73 |
public uint VoteValidityPeriod = 5; |
| 74 |
public bool IsUseVoteUnBanCommand = false; |
| 75 |
public bool IsUsePlaySoundCommand = false; |
| 76 |
public bool IsUseCancelPlayingSoundCommand = false; |
| 77 |
public bool IsUseAddFilteringRuleCommand = false; |
| 78 |
public bool IsUseRemoveFilteringRuleCommand = false; |
| 79 |
|
| 80 |
public bool IsEnableReading = false; |
| 81 |
public string SoftalkPath = ""; |
| 82 |
public string ReadingTemplate = "レス{ResID} {Writer[さん]} {PostText}"; |
| 83 |
public List<Replacement> ReplacementWords = new List<Replacement>(); |
| 84 |
public bool IsReadCommentAtFirst = false; |
| 85 |
public bool IsEnableAdjustReadSpeed = true; |
| 86 |
|
| 87 |
public bool IsEnableSoundEffect = false; |
| 88 |
public List<SoundEffectRule> SoundEffectRules = new List<SoundEffectRule>(); |
| 89 |
|
| 90 |
public bool IsEnableFiltering = false; |
| 91 |
public List<FilteringRule> FilteringRules = new List<FilteringRule>(); |
| 92 |
public bool IsExceptMatchedComment; |
| 93 |
} |
| 94 |
} |