MinecraftNotifier 1.0.3

Event handlers when a new version has released

Install-Package MinecraftNotifier -Version 1.0.3
dotnet add package MinecraftNotifier --version 1.0.3
<PackageReference Include="MinecraftNotifier" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MinecraftNotifier --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

For complete library documentation, view the doxygen docs here

Basic usage

class Program
    {

        public static void Main(string[] args)
        {
            MinecraftVersion mcversion = new MinecraftVersion();

            mcversion.onNewMinecraftVersionHandler += OnNewMinecraftVersionHandler;
            mcversion.onNewSnapshotReleaseHandler += OnNewSnapshotReleaseHandler;
            mcversion.onNewStableReleaseHandler += OnNewStableReleaseHandler;
            mcversion.SetInterval(5000); //Standard: 60000ms => 60seconds
            mcversion.SetTimespan(14); //Standard: 1 => 1 day
            mcversion.Start();
            Console.ReadLine();
        }

        private static void OnNewMinecraftVersionHandler(object sender, OnNewMinecraftVersionArgs e)
        {
            Console.WriteLine($"New release: {e.MCVersion.Id} ({e.MCVersion.ReleaseTime.ToLocalTime():F})");
        }

        private static void OnNewStableReleaseHandler(object sender, OnNewStableReleaseArgs e)
        {
            Console.WriteLine($"New stable release: {e.MCVersion.Id} ({e.MCVersion.ReleaseTime.ToLocalTime():F})");
        }

        private static void OnNewSnapshotReleaseHandler(object sender, OnNewSnapshotReleaseArgs e)
        {
            Console.WriteLine($"New snapshot release: {e.MCVersion.Id} ({e.MCVersion.ReleaseTime.ToLocalTime():F})");
        }
    }

For complete library documentation, view the doxygen docs here

Basic usage

class Program
    {

        public static void Main(string[] args)
        {
            MinecraftVersion mcversion = new MinecraftVersion();

            mcversion.onNewMinecraftVersionHandler += OnNewMinecraftVersionHandler;
            mcversion.onNewSnapshotReleaseHandler += OnNewSnapshotReleaseHandler;
            mcversion.onNewStableReleaseHandler += OnNewStableReleaseHandler;
            mcversion.SetInterval(5000); //Standard: 60000ms => 60seconds
            mcversion.SetTimespan(14); //Standard: 1 => 1 day
            mcversion.Start();
            Console.ReadLine();
        }

        private static void OnNewMinecraftVersionHandler(object sender, OnNewMinecraftVersionArgs e)
        {
            Console.WriteLine($"New release: {e.MCVersion.Id} ({e.MCVersion.ReleaseTime.ToLocalTime():F})");
        }

        private static void OnNewStableReleaseHandler(object sender, OnNewStableReleaseArgs e)
        {
            Console.WriteLine($"New stable release: {e.MCVersion.Id} ({e.MCVersion.ReleaseTime.ToLocalTime():F})");
        }

        private static void OnNewSnapshotReleaseHandler(object sender, OnNewSnapshotReleaseArgs e)
        {
            Console.WriteLine($"New snapshot release: {e.MCVersion.Id} ({e.MCVersion.ReleaseTime.ToLocalTime():F})");
        }
    }

Release Notes

Incremental changes. See commit history.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.3 230 4/11/2020
1.0.2 130 3/11/2020
1.0.1 142 3/11/2020
1.0.0 156 12/13/2019