/// <summary>
        /// Add trustline for this account.
        /// </summary>
        /// <param name="allowRippling">Defaults to true. See [here](https://ripple.com/wiki/No_Ripple) for details</param>
        /// <param name="trustline">A trustline object.</param>
        /// <param name="client">A RippleRestClient used for this request.</param>
        /// <returns>An instance of AddTrustlineResponse</returns>
        /// <exception cref="RippleRestException">Request failed.</exception>
        public AddTrustlineResponse AddTrustline(RippleRestClient client, Trustline trustline, bool allowRippling)
        {
            var request = new AddTrustlineRequest();
            request.Secret = this.Secret;
            request.Trustline = trustline;
            request.AllowRippling = allowRippling;

            var result = client.RestClient.Execute<AddTrustlineResponse>(client.CreatePostRequest(request, "v1/accounts/{0}/trustlines", Address));
            client.HandleRestResponseErrors(result);

            return result.Data;
        }
 /// <summary>
 /// Add trustline for this account.
 /// </summary>
 /// <param name="allowRippling">Defaults to true. See [here](https://ripple.com/wiki/No_Ripple) for details</param>
 /// <param name="trustline">A trustline object.</param>
 /// <returns>An instance of AddTrustlineResponse</returns>
 /// <exception cref="RippleRestException">Request failed.</exception>
 public AddTrustlineResponse AddTrustline(Trustline trustline, bool allowRippling)
 {
     return AddTrustline(RippleRestClient.GetDefaultInstanceOrThrow(), trustline, allowRippling);
 }
 /// <summary>
 /// Add trustline for this account.
 /// </summary>
 /// <param name="trustline">A trustline object.</param>
 /// <param name="client">A RippleRestClient used for this request.</param>
 /// <returns>An instance of AddTrustlineResponse</returns>
 /// <exception cref="RippleRestException">Request failed.</exception>
 public AddTrustlineResponse AddTrustline(RippleRestClient client, Trustline trustline)
 {
     return AddTrustline(client, trustline, true);
 }
 /// <summary>
 /// Add trustline for this account.
 /// </summary>
 /// <param name="trustline">A trustline object.</param>
 /// <returns>An instance of AddTrustlineResponse</returns>
 /// <exception cref="RippleRestException">Request failed.</exception>
 public AddTrustlineResponse AddTrustline(Trustline trustline)
 {
     return AddTrustline(RippleRestClient.GetDefaultInstanceOrThrow(), trustline);
 }