This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Formated files. - Added rest of EffectResponses logic.
- Loading branch information
Showing
14 changed files
with
443 additions
and
467 deletions.
There are no files selected for viewing
59 changes: 28 additions & 31 deletions
59
stellar-dotnet-sdk/responses/effects/AccountSponsorshipCreatedEffectResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
59 changes: 28 additions & 31 deletions
59
stellar-dotnet-sdk/responses/effects/AccountSponsorshipRemovedEffectResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
69 changes: 33 additions & 36 deletions
69
stellar-dotnet-sdk/responses/effects/AccountSponsorshipUpdatedEffectResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
67 changes: 32 additions & 35 deletions
67
stellar-dotnet-sdk/responses/effects/ClaimableBalanceSponsorshipCreatedEffectResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
67 changes: 32 additions & 35 deletions
67
stellar-dotnet-sdk/responses/effects/ClaimableBalanceSponsorshipRemovedEffectResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
Oops, something went wrong.