Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed #43 #44

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Amino.NET/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@
public Task flag_community(string communityId, string reason, Types.Flag_Types flagType, bool asGuest = false)
{
if (!asGuest) { if (SessionId == null) { throw new Exception("ErrorCode: 0: Client not logged in"); } }
int _flagType;

Check warning on line 1334 in Amino.NET/Client.cs

View workflow job for this annotation

GitHub Actions / test

The variable '_flagType' is declared but never used
string _flag = asGuest ? "g-flag" : "flag";
JObject data = new JObject()
{
Expand Down Expand Up @@ -1856,7 +1856,7 @@
var response = client.ExecuteGet(request);
if ((int)response.StatusCode != 200) { throw new Exception(response.Content); }
if (Debug) { Trace.WriteLine(response.Content); }
return System.Text.Json.JsonSerializer.Deserialize<FromCode>(JsonDocument.Parse(response.Content).RootElement.GetRawText());
return System.Text.Json.JsonSerializer.Deserialize<FromCode>(JsonDocument.Parse(response.Content).RootElement.GetProperty("linkInfoV2").GetRawText());
}

/// <summary>
Expand Down Expand Up @@ -1889,7 +1889,7 @@
var response = client.ExecutePost(request);
if ((int)response.StatusCode != 200) { throw new Exception(response.Content); }
if (Debug) { Trace.WriteLine(response.Content); }
return System.Text.Json.JsonSerializer.Deserialize<FromCode>(JsonDocument.Parse(response.Content).RootElement.GetRawText());
return System.Text.Json.JsonSerializer.Deserialize<FromCode>(JsonDocument.Parse(response.Content).RootElement.GetProperty("linkInfoV2").GetRawText());
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Amino.NET/Objects/LastChatMessageSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class LastChatMessageSummary
{
[JsonPropertyName("uid")] public string UserId { get; set; }
[JsonPropertyName("isHidden")] public bool? IsHidden { get; set; }
[JsonPropertyName("mediaType")] public string MediaType { get; set; }
[JsonPropertyName("mediaType")] public int? MediaType { get; set; }
[JsonPropertyName("content")] public string Content { get; set; }
[JsonPropertyName("messageId")] public string MessageId { get; set; }
[JsonPropertyName("createdTime")] public string CreatedTime { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Amino.NET/Objects/WalletInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WalletInfo
[JsonPropertyName("adsEnabled")]public bool? AdsEnabled { get; set; }
[JsonPropertyName("adsVideoStats")]public string AdsVideoStats { get; set; }
[JsonPropertyName("adsFlag")]public string AdsFlag { get; set; }
[JsonPropertyName("totalCoins")]public int? TotalCoins { get; set; }
[JsonPropertyName("totalCoins")]public float? TotalCoins { get; set; }
[JsonPropertyName("businessCoinsEnabled")]public bool? BusinessCoinsEnabled { get; set; }
[JsonPropertyName("totalBusinessCoins")]public int? TotalBusinessCoins { get; set; }
[JsonPropertyName("totalBusinessCoinsFloat")]public float? TotalBusinessCoinsFloat { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion Amino.NET/SubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ public Task send_activity_time()
int optInAdsFlags = 2147483647;
int tzf = helpers.TzFilter();
data.Add("userActiveTimeChunkList", timeData);
data.Add("OptInAdsFlags", optInAdsFlags);
data.Add("optInAdsFlags", optInAdsFlags);
data.Add("timestamp", (long)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalMilliseconds);
data.Add("timezone", tzf);

Expand Down
Loading