• uwp 的work project 的 取消闹钟


        private void initalAlarmHanle()

            {

                string cancelAlarm = "CancelAlarmEvent";

                ConnectionManager.AddHandler(cancelAlarm, async (v) =>

                {

                    string clockId = "clockId";

                    if (v.ContainsKey(clockId))

                    {

                        Log.WriteLine("AlarmModel CancelAlarmEvent");

                       

                        long Clock_id = (long) v[clockId];

                      

                        Clock clock=clockList.GetClockByID(Clock_id);

                        if(clock!=null)

                        {

                            ClockData clockData = clock.ClockData;

                            clockData.Clock_id = Clock_id;

                            _ = HPMetrics.Metrics.Track(LocalSettings.CustomerId, (int)HPMetrics.XwEventType.ClickButton, "AlarmDetailsPageDelete");

                            await XiaoweiAI.ModifyAlarmAsync(3, clockData.ToJsonObject()).ConfigureAwait(false);

                        }

                    }             

                });

            }

  • 相关阅读:
    0109. Convert Sorted List to Binary Search Tree (M)
    03.Linux基础操作
    02windows基础操作
    API接口幂问题
    RocketMQ
    zookeeper
    JVM之参数调优
    JAVA多线程之线程池
    计算机网络常见问题
    英语词性之名词
  • 原文地址:https://www.cnblogs.com/bruce1992/p/14225949.html
Copyright © 2020-2023  润新知