Skip to content

Conversation

@Hona
Copy link
Owner

@Hona Hona commented Dec 29, 2023

No description provided.

Comment on lines +65 to +75
private const ulong steamid64ident = 76561197960265728;

public static ulong UsteamidToCommid(string usteamid)
{
usteamid = usteamid.Replace("[", "").Replace("]", "");

string[] usteamidSplit = usteamid.Split(':');
ulong commid = ulong.Parse(usteamidSplit[2]) + steamid64ident;

return commid;
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a common library?

{
var processStartInfo = new ProcessStartInfo
{
FileName = "parse_demo.exe",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to config. locally this will be an exe, hosted this will probably be linux, not an EXE and different dir maybe.

Comment on lines +22 to +29
public record Classes(
[property: JsonPropertyName("0")] int? _0,
[property: JsonPropertyName("3")] int? _3,
[property: JsonPropertyName("9")] int? _9,
[property: JsonPropertyName("4")] int? _4,
[property: JsonPropertyName("1")] int? _1,
[property: JsonPropertyName("7")] int? _7
);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to a dictionary


var downloadStream = httpClient.GetStreamAsync(url, cancellationToken);

var zipFilePath = Path.Join(Environment.CurrentDirectory, "demos", demo.Overview.FileName + ".zip");
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config?

@Hona Hona mentioned this pull request Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants