Surprise.Plugin.GeTui 1.0.0

dotnet add package Surprise.Plugin.GeTui --version 1.0.0
                    
NuGet\Install-Package Surprise.Plugin.GeTui -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Surprise.Plugin.GeTui" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Surprise.Plugin.GeTui" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Surprise.Plugin.GeTui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Surprise.Plugin.GeTui --version 1.0.0
                    
#r "nuget: Surprise.Plugin.GeTui, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Surprise.Plugin.GeTui@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Surprise.Plugin.GeTui&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Surprise.Plugin.GeTui&version=1.0.0
                    
Install as a Cake Tool

针对个推平台封装的APP通知栏消息推送,疑问请发送邮件到:2251754654@qq.com using Microsoft.VisualStudio.TestTools.UnitTesting;

using Surprise.Plugin.GeTui.Logins; using System; using System.Collections.Generic; using Surprise.Plugin.GeTui.Entities; using Surprise.Plugin.GeTui.Requests;

namespace Surprise.Plugin.GeTui.Test.NET40 { [TestClass] public class AppPushTest { public static AppInfo appInfo = new AppInfo() { AppId = "", AppKey = "", AppSecret = "", MasterSecret = "", AndroidPackageName = "", IOSPackageName = "", BaseUrl = "https://restapi.getui.com/v2/{你的APPId}" }; public string TestUserId = "你的CID"; public static IGeTuiProvider provider = new GeTuiProvider(appInfo); private static string body = @"消息内容";

    [TestMethod("登陆测试")]
    public void TestLogin()
    {
        var login = provider.TryLogin(new Login(appInfo.AppKey, appInfo.MasterSecret));
        Assert.IsNotNull(login);
        Assert.IsNotNull(login.token);
    }

    [TestMethod("单推测试")]
    public void TestToSingle()
    {
        var notification = new Message("单推测试", body + Guid.NewGuid(), true);
        var result = provider.ToSingleUser(TestUserId, notification);
        Assert.IsNotNull(result);
        Assert.IsNotNull(result.TaskId);
    }
    [TestMethod("批量单推测试")]
    public void TestToSingleBatch()
    {
        var message = new Message("批量单推测试", body + Guid.NewGuid(), true);
        var templates = new List<SingleTemplate>();
        var messages1 = provider.GetSingleTemplate(TestUserId, message);
        message.body += Guid.NewGuid();
        var messages2 = provider.GetSingleTemplate(TestUserId, message);
        templates.Add(messages1);
        templates.Add(messages2);
        var result = provider.ToSingleList(templates, false);
        Assert.IsNotNull(result);
        Assert.IsNotNull(result.TaskId);
    }
    [TestMethod("批量推测试")]
    public void TestToList()
    {
        var notification = new Message("批量推测试", body + Guid.NewGuid(), true);
        var result = provider.ToBatchUsers(new string[] { TestUserId }, notification, false);
        Assert.IsNotNull(result);
        Assert.IsNotNull(result.TaskId);
    }
    [TestMethod("群推测试")]
    public void TestToApp()
    {
        var notification = new Message("群推测试", body + Guid.NewGuid(), true);
        var result = provider.ToGroupUsers(notification);
        Assert.IsNotNull(result);
        Assert.IsNotNull(result.TaskId);
    }
}

}

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 533 3/19/2021