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.NoSuchMyListFile; // Process Response string sMsgType = socketResponse.Substring(0, 3); switch (sMsgType) { case "222": { myListStats = new Raw_AniDB_MyListStats(socketResponse); return enHelperActivityType.GotMyListStats; } case "501": { return enHelperActivityType.LoginRequired; } } return enHelperActivityType.NoSuchMyListFile; }
public void Populate(Raw_AniDB_MyListStats raw) { this.Animes = raw.Animes; this.Episodes = raw.Episodes; this.Files = raw.Files; this.SizeOfFiles = raw.SizeOfFiles; this.AddedAnimes = raw.AddedAnimes; this.AddedEpisodes = raw.AddedEpisodes; this.AddedFiles = raw.AddedFiles; this.AddedGroups = raw.AddedGroups; this.LeechPct = raw.LeechPct; this.GloryPct = raw.GloryPct; this.ViewedPct = raw.ViewedPct; this.MylistPct = raw.MylistPct; this.ViewedMylistPct = raw.ViewedMylistPct; this.EpisodesViewed = raw.EpisodesViewed; this.Votes = raw.Votes; this.Reviews = raw.Reviews; this.ViewiedLength = raw.ViewiedLength; }
public AniDB_MylistStats(Raw_AniDB_MyListStats raw) { Populate(raw); }