コード例 #1
0
        public async Task <IActionResult> OnUnsubscribeM5([FromBody] OnUnsubscribeM5Payload request)
        {
            var result = await UnsubscribeM5(request);

            if (result != null && result is OkOnUnsubscribeM5Result authResult)
            {
                return(Ok(new
                {
                    Result = "ok",
                    Modifiers = new { authResult.Topics }
                }));
            }

            return(result.GeneratePublicResult());
        }
コード例 #2
0
 protected virtual async Task <HookResult> UnsubscribeM5(OnUnsubscribeM5Payload onUnsubscribeM5Payload)
 {
     return(new OkResult());
 }