2025-09-22 00:29:51 -05:00
|
|
|
|
using System.Management.Automation;
|
|
|
|
|
|
using LANCommander.SDK.Services;
|
2025-01-29 23:11:52 -06:00
|
|
|
|
|
|
|
|
|
|
namespace LANCommander.SDK.PowerShell.Cmdlets
|
|
|
|
|
|
{
|
|
|
|
|
|
[Cmdlet(VerbsData.Out, "PlayerAvatar")]
|
|
|
|
|
|
[OutputType(typeof(string))]
|
2025-09-24 20:58:23 -05:00
|
|
|
|
public class OutPlayerAvatarCmdlet(ProfileClient profileClient) : BaseCmdlet
|
2025-01-29 23:11:52 -06:00
|
|
|
|
{
|
|
|
|
|
|
protected override void ProcessRecord()
|
|
|
|
|
|
{
|
2025-09-24 20:58:23 -05:00
|
|
|
|
var result = profileClient.GetAvatarAsync().GetAwaiter().GetResult();
|
2025-01-29 23:11:52 -06:00
|
|
|
|
|
2025-02-28 18:13:34 -06:00
|
|
|
|
WriteObject(result, false);
|
2025-01-29 23:11:52 -06:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|