Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Additions and fixes
Browse files Browse the repository at this point in the history
- Formated files.
- Added rest of EffectResponses logic.
  • Loading branch information
Kirbyrawr committed Sep 23, 2020
1 parent 57203f8 commit 1aa3508
Show file tree
Hide file tree
Showing 14 changed files with 443 additions and 467 deletions.
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents account_sponsorship_created effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class AccountSponsorshipCreatedEffectResponse : EffectResponse
{
public override int TypeId => 60;

[JsonProperty(PropertyName = "sponsor")]
public string Sponsor { get; private set; }

public AccountSponsorshipCreatedEffectResponse()
{

}

public AccountSponsorshipCreatedEffectResponse(string sponsor)
{
Sponsor = sponsor;
}
}
}
using Newtonsoft.Json;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents account_sponsorship_created effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class AccountSponsorshipCreatedEffectResponse : EffectResponse
{
public override int TypeId => 60;

[JsonProperty(PropertyName = "sponsor")]
public string Sponsor { get; private set; }

public AccountSponsorshipCreatedEffectResponse()
{

}

public AccountSponsorshipCreatedEffectResponse(string sponsor)
{
Sponsor = sponsor;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents account_sponsorship_removed effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class AccountSponsorshipdRemovedEffectResponse : EffectResponse
{
public override int TypeId => 62;

[JsonProperty(PropertyName = "former_sponsor")]
public string FormerSponsor { get; private set; }

public AccountSponsorshipdRemovedEffectResponse()
{

}

public AccountSponsorshipdRemovedEffectResponse(string formerSponsor)
{
FormerSponsor = formerSponsor;
}
}
}
using Newtonsoft.Json;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents account_sponsorship_removed effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class AccountSponsorshipdRemovedEffectResponse : EffectResponse
{
public override int TypeId => 62;

[JsonProperty(PropertyName = "former_sponsor")]
public string FormerSponsor { get; private set; }

public AccountSponsorshipdRemovedEffectResponse()
{

}

public AccountSponsorshipdRemovedEffectResponse(string formerSponsor)
{
FormerSponsor = formerSponsor;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,36 +1,33 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents account_sponsorship_updated effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class AccountSponsorshipUpdatedEffectResponse : EffectResponse
{
public override int TypeId => 61;


[JsonProperty(PropertyName = "former_sponsor")]
public string FormerSponsor { get; private set; }

[JsonProperty(PropertyName = "new_sponsor")]
public long NewSponsor { get; private set; }

public AccountSponsorshipUpdatedEffectResponse()
{

}

public AccountSponsorshipUpdatedEffectResponse(string formerSponsor, string newSponsor)
{
FormerSponsor = formerSponsor;
NewSponsor = newSponsor;
}
}
}
using Newtonsoft.Json;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents account_sponsorship_updated effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class AccountSponsorshipUpdatedEffectResponse : EffectResponse
{
public override int TypeId => 61;


[JsonProperty(PropertyName = "former_sponsor")]
public string FormerSponsor { get; private set; }

[JsonProperty(PropertyName = "new_sponsor")]
public string NewSponsor { get; private set; }

public AccountSponsorshipUpdatedEffectResponse()
{

}

public AccountSponsorshipUpdatedEffectResponse(string formerSponsor, string newSponsor)
{
FormerSponsor = formerSponsor;
NewSponsor = newSponsor;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents claimable_balance_sponsorship_created effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class ClaimableBalanceSponsorshipCreatedEffectResponse : EffectResponse
{
public override int TypeId => 66;

[JsonProperty(PropertyName = "balance_id")]
public string BalanceID{ get; private set; }

[JsonProperty(PropertyName = "sponsor")]
public string Sponsor { get; private set; }

public ClaimableBalanceSponsorshipCreatedEffectResponse()
{

}

public ClaimableBalanceSponsorshipCreatedEffectResponse(string balanceID, string sponsor)
{
BalanceID = balanceID;
Sponsor = sponsor;
}
}
}
using Newtonsoft.Json;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents claimable_balance_sponsorship_created effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class ClaimableBalanceSponsorshipCreatedEffectResponse : EffectResponse
{
public override int TypeId => 66;

[JsonProperty(PropertyName = "balance_id")]
public string BalanceID { get; private set; }

[JsonProperty(PropertyName = "sponsor")]
public string Sponsor { get; private set; }

public ClaimableBalanceSponsorshipCreatedEffectResponse()
{

}

public ClaimableBalanceSponsorshipCreatedEffectResponse(string balanceID, string sponsor)
{
BalanceID = balanceID;
Sponsor = sponsor;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents claimable_balance_sponsorship_removed effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class ClaimableBalanceSponsorshipRemovedEffectResponse : EffectResponse
{
public override int TypeId => 68;

[JsonProperty(PropertyName = "balance_id")]
public string BalanceID { get; private set; }

[JsonProperty(PropertyName = "former_sponsor")]
public string FormerSponsor { get; private set; }

public ClaimableBalanceSponsorshipRemovedEffectResponse()
{

}

public ClaimableBalanceSponsorshipRemovedEffectResponse(string balanceID, string formerSponsor)
{
BalanceID = balanceID;
FormerSponsor = formerSponsor;
}
}
}
using Newtonsoft.Json;

namespace stellar_dotnet_sdk.responses.effects
{
/// <summary>
/// Represents claimable_balance_sponsorship_removed effect response.
/// See: https://www.stellar.org/developers/horizon/reference/resources/effect.html
/// <seealso cref="requests.EffectsRequestBuilder" />
/// <seealso cref="Server" />
/// </summary>
public class ClaimableBalanceSponsorshipRemovedEffectResponse : EffectResponse
{
public override int TypeId => 68;

[JsonProperty(PropertyName = "balance_id")]
public string BalanceID { get; private set; }

[JsonProperty(PropertyName = "former_sponsor")]
public string FormerSponsor { get; private set; }

public ClaimableBalanceSponsorshipRemovedEffectResponse()
{

}

public ClaimableBalanceSponsorshipRemovedEffectResponse(string balanceID, string formerSponsor)
{
BalanceID = balanceID;
FormerSponsor = formerSponsor;
}
}
}

0 comments on commit 1aa3508

Please sign in to comment.