public JObject ToJson() { JObject json = new JObject(); json["network_identifier"] = NetworkIdentifier.ToJson(); json["signed"] = Signed.ToString().ToLower(); json["transaction"] = Transaction; return(json); }
/// <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); }