public SqlTwitchChannelPointScale(SqlTwitchChannel channel, ulong unitValue, string unitName = null) : base(new object[] { channel.user.id, unitValue, unitName }) { this.channel = channel; }
public static SqlTwitchChannelPointScale[] ForChannel(SqlTwitchChannel channel) { List<object[]> results = _table.Select(null, null, "ChannelUserId=?a", new object[] { channel.user.id }, "UnitValue", 0); if(results != null && results.Count > 0) { SqlTwitchChannelPointScale[] points = new SqlTwitchChannelPointScale[results.Count]; for(int i = 0; i < results.Count; i++) { points[i] = new SqlTwitchChannelPointScale(channel, (ulong)results[i][1], (string)results[i][2]); } return points; } return null; }
// public SqlTwitchCommand(uint id,SqlTwitchChannel channel , string Command, string Description = null, bool Mod = true, int Time = 0) : base(new object[] { id, channel.user.id, Command, Description, Mod, Time }) { }