コード例 #1
0
ファイル: GGPublicFolder.cs プロジェクト: DamiaX/shgg
 private void PublicFolderRead() {
     string queryStr;
     byte[] queryArray = BuildPubDirQuery(int.Parse(this.GGNumber), string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, GGGender.All, false, out queryStr);
     stPubDir OutPubDir = new stPubDir();
     OutPubDir.Header.Type = OUT_PUBDIR_REQUEST;
     OutPubDir.Header.Size = 5 + (uint)queryArray.Length;
     OutPubDir.RequestType = OUT_PUBDIR_READ;
     ForwardData(RawSerialize(OutPubDir), 0);
     ForwardData(queryArray, 0);
 }
コード例 #2
0
ファイル: GGPublicFolder.cs プロジェクト: DamiaX/shgg
 private void PublicFolderSearch(int GGNumber, string firstname, string lastname, string nickname, string birthYear,
                                  string city, GGGender gender, bool activeOnly)
 {
     byte[] queryArray = BuildPubDirQuery(GGNumber, firstname, lastname, nickname, birthYear, city, gender, activeOnly, out queryStr);
     stPubDir OutPubDir = new stPubDir();
     OutPubDir.Header.Type = OUT_PUBDIR_REQUEST;
     OutPubDir.Header.Size = 5 + (uint)queryArray.Length;
     OutPubDir.RequestType = OUT_PUBDIR_SEARCH;
     ForwardData(RawSerialize(OutPubDir), 0);
     ForwardData(queryArray, 0);
 }
コード例 #3
0
ファイル: GGPublicFolder.cs プロジェクト: DamiaX/shgg
        private void PublicFolderSearchNext() {
            if (string.IsNullOrEmpty(queryStr) || (!PubDirCanSearchMore))
                return;

            string query = queryStr + ".fmstart." + vNextStart.ToString() + ".";
            byte[] queryArray = Str2ByteArray(query);

            stPubDir OutPubDir = new stPubDir();
            OutPubDir.Header.Type = OUT_PUBDIR_REQUEST;
            OutPubDir.Header.Size = 5 + (uint)queryArray.Length;
            OutPubDir.RequestType = OUT_PUBDIR_SEARCH;
            ForwardData(RawSerialize(OutPubDir), 0);
            ForwardData(queryArray, 0);
        }