Exemplo n.º 1
0
 public string ToStringWithRank(int rank, HoseiKind hosei_kind, int mylist_rate)
 {
     if (status_ == Status.DELETED)
     {
         return(video_id + "\tDELETED");
     }
     else if (status_ == Status.NOT_FOUND)
     {
         return(video_id + "\tDELETED");
     }
     else if (status_ == Status.OTHER)
     {
         return(video_id + "");
     }
     else
     {
         StringBuilder buff = new StringBuilder();
         buff.Append(video_id);
         buff.Append("\t");
         buff.Append(rank.ToString());
         buff.Append("\t");
         buff.Append(IJStringUtil.ToStringWithComma(point.view));
         buff.Append("\t");
         buff.Append(IJStringUtil.ToStringWithComma(point.res));
         buff.Append("\t");
         buff.Append(IJStringUtil.ToStringWithComma(point.mylist));
         buff.Append("\t");
         buff.Append(point.GetHoseiString(hosei_kind, mylist_rate, 2, hosei_kind == HoseiKind.Nicoran));
         buff.Append("\t");
         buff.Append(point.GetMylistRateString());
         buff.Append("\t");
         buff.Append(IJStringUtil.ToStringWithComma(point.CalcScore(hosei_kind, mylist_rate)));
         buff.Append("\t");
         buff.Append(title);
         buff.Append("\t");
         buff.Append(NicoUtil.DateToString(submit_date));
         buff.Append("\t");
         buff.Append(video_id + ".png");
         buff.Append("\t");
         buff.Append(pname);
         buff.Append("\t");
         buff.Append(tag_set.ToString());
         return(buff.ToString());
     }
 }
Exemplo n.º 2
0
        public override string ToString()
        {
            StringBuilder buff = new StringBuilder();

            buff.Append(video_id);
            buff.Append(delimiter1_);
            buff.Append(title);
            buff.Append(delimiter1_);
            buff.Append(NicoUtil.DateToString(submit_date));
            buff.Append(delimiter1_);
            buff.Append(tag_set.ToString());
            buff.Append(delimiter1_);
            for (int i = 0; i < val_list_.Count; ++i)
            {
                buff.Append(val_list_[i].ToString());
                if (i < val_list_.Count - 1)
                {
                    buff.Append(delimiter2_);
                }
            }
            buff.Append(delimiter1_);
            buff.Append(length);
            return(buff.ToString());
        }