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); }
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); }
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); }