/// <summary> /// Возвращает словарь параметров. /// </summary> public override Dictionary <string, string> GetParameters() { var parameters = base.GetParameters(); parameters["answer_ids"] = String.Join(",", AnswerIDs); if (FriendsOnly != VKBoolean.False) { parameters["friends_only"] = FriendsOnly.ToString(); } if (Offset != 0) { parameters["offset"] = Offset.ToString(); } if (Count != 0) { parameters["count"] = Count.ToString(); } if (Fields != null) { var builder = new StringBuilder(); for (int i = 0; i < Fields.Count; i++) { builder.Append(Fields[i] + ","); } parameters["fields"] = builder.ToString(); } if (NameCase != VKUserNameCase.nom) { parameters["name_case"] = NameCase.ToString(); } return(parameters); }
/// <summary> /// Возвращает словарь параметров /// </summary> public override Dictionary <string, string> GetParameters() { var parameters = base.GetParameters(); if (OwnerID != 0) { parameters["owner_id"] = OwnerID.ToString(); } if (FriendsOnly != 0) { parameters["friends_only"] = FriendsOnly.ToString(); } if ((OwnerID < 0) && (FromGroup != 0)) { parameters["from_group"] = FromGroup.ToString(); } if (Message != null) { parameters["message"] = Message; } if (Attachments != null) { parameters["attachments"] = Attachments; } if (Services != null) { parameters["services"] = Services; } if (Signed != 0) { parameters["signed"] = Signed.ToString(); } if (Latitude != null) { parameters["lat"] = Latitude.ToString(); } if (Longitude != null) { parameters["long"] = Longitude.ToString(); } if (PlaceID != null) { parameters["place_id"] = PlaceID.ToString(); } return(parameters); }