public static void Populate(this AniDB_ReleaseGroup releasegroup, Raw_AniDB_Group raw) { releasegroup.GroupID = raw.GroupID; releasegroup.Rating = raw.Rating; releasegroup.Votes = raw.Votes; releasegroup.AnimeCount = raw.AnimeCount; releasegroup.FileCount = raw.FileCount; releasegroup.GroupName = raw.GroupName; releasegroup.GroupNameShort = raw.GroupNameShort; releasegroup.IRCChannel = raw.IRCChannel; releasegroup.IRCServer = raw.IRCServer; releasegroup.URL = raw.URL; releasegroup.Picname = raw.Picname; }
public void Populate(Raw_AniDB_Group raw) { this.GroupID = raw.GroupID; this.Rating = raw.Rating; this.Votes = raw.Votes; this.AnimeCount = raw.AnimeCount; this.FileCount = raw.FileCount; this.GroupName = raw.GroupName; this.GroupNameShort = raw.GroupNameShort; this.IRCChannel = raw.IRCChannel; this.IRCServer = raw.IRCServer; this.URL = raw.URL; this.Picname = raw.Picname; }
public virtual enHelperActivityType Process(ref Socket soUDP, ref IPEndPoint remoteIpEndPoint, string sessionID, Encoding enc) { ProcessCommand(ref soUDP, ref remoteIpEndPoint, sessionID, enc); // handle 555 BANNED and 598 - UNKNOWN COMMAND if (ResponseCode == 598) { return(enHelperActivityType.UnknownCommand_598); } if (ResponseCode == 555) { return(enHelperActivityType.Banned_555); } if (errorOccurred) { return(enHelperActivityType.NoSuchGroup); } // Process Response string sMsgType = socketResponse.Substring(0, 3); switch (sMsgType) { case "250": { // 250 GROUP //3938|704|1900|53|1126|Ayako-Fansubs|Ayako|#Ayako|irc.rizon.net|http://ayakofansubs.info/|1669.png Group = new Raw_AniDB_Group(socketResponse); return(enHelperActivityType.GotGroup); } case "350": { return(enHelperActivityType.NoSuchGroup); } case "501": { return(enHelperActivityType.LoginRequired); } } return(enHelperActivityType.FileDoesNotExist); }
public AniDB_ReleaseGroup(Raw_AniDB_Group raw) { Populate(raw); }
public AniDBCommand_GetGroup() { commandType = enAniDBCommandType.GetGroup; Group = null; }