public async Task <BBoxResult <List <SSIDInfo> > > GetSSIDAsync() { var bboxResult = await SendAsync(Actions.GetValue().SSIDs()); var typedBBoxResult = new BBoxResult <List <SSIDInfo> >(bboxResult); if (typedBBoxResult.Succeed) { var ssidInfos = new List <SSIDInfo>(); foreach (var callback in typedBBoxResult.Reply.Actions?.FirstOrDefault()?.Callbacks ?? new List <ActionReplyCallback>()) { ssidInfos.Add(new SSIDInfo { Capability = callback.Parameters.Capability, Metadata = callback.Parameters.Value.SSID }); } typedBBoxResult.Result = ssidInfos; } return(typedBBoxResult); }
public BBoxResult(BBoxResult bboxResult) : base(bboxResult.Request, bboxResult.Reply) { }