aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/ShiftnetSite.cs
blob: 5460171c8fc5a845b690bed5bf755f13e9484c63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShiftOS.Engine
{
    public interface IShiftnetSite
    {
        void Setup();
        void OnSkinLoad();
        void OnUpgrade();

        event Action<string> GoToUrl;
        event Action GoBack;
    }

    /// <summary>
    /// Marks a shiftnet site as a fundamental, and will make it display on the homepage.
    /// </summary>
    public class ShiftnetFundamentalAttribute : Attribute
    {

    }

    public interface IShiftnetClient
    {
        void NavigateToUrl(string url);
        void RefreshSite();
    }

    public class ShiftnetSiteAttribute : Attribute
    {
        public ShiftnetSiteAttribute(string url, string name, string description)
        {
            Url = url;
            Name = name;
            Description = description;
        }

        public string Url { get; private set; }
        public string Name { get; private set; }
        public string Description { get; private set; }
    }
}