------ #### V1.0.2404.1201 - 新增支持手动运行规则。 - 规则播放时间间隔不再针对全局声效,而只针对当前规则声效。 - 修复规则中播放文件夹可能导致无法执行的BUG。 - 修复规则不勾选礼物和点赞,则无法执行的BUG。
37 lines
876 B
C#
37 lines
876 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Messaging.Messages;
|
|
using CommunityToolkit.Mvvm.Messaging;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LiveTools.Data
|
|
{
|
|
public partial class LogViewModel : ObservableObject, IRecipient<RequestMessage<string>>
|
|
{
|
|
[ObservableProperty]
|
|
private string title = "控制台界面";
|
|
|
|
|
|
|
|
public LogViewModel()
|
|
{
|
|
//接口必须实现
|
|
WeakReferenceMessenger.Default.Register(this);
|
|
}
|
|
|
|
//消息返回
|
|
public void Receive(RequestMessage<string> message)
|
|
{
|
|
|
|
Debug.WriteLine("我接受到了消息" + message.Response);
|
|
|
|
message.Reply(new string("我返回的消息"));
|
|
}
|
|
|
|
}
|
|
}
|