aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/ShiftnetSite.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-23 14:53:10 -0400
committerMichael <[email protected]>2017-04-23 14:53:10 -0400
commite833a9bf2751f16d8614af9aa20f5b9bec3d81a8 (patch)
tree2bed17163caeb9f417394d91b741d6c7d6766a8c /ShiftOS_TheReturn/ShiftnetSite.cs
parentba0ae29bbb7eee83c5a4969316d97b43b5f18ba0 (diff)
downloadshiftos_thereturn-e833a9bf2751f16d8614af9aa20f5b9bec3d81a8.tar.gz
shiftos_thereturn-e833a9bf2751f16d8614af9aa20f5b9bec3d81a8.tar.bz2
shiftos_thereturn-e833a9bf2751f16d8614af9aa20f5b9bec3d81a8.zip
FUCKTONS OF SHIFTORIUM WORK
Diffstat (limited to 'ShiftOS_TheReturn/ShiftnetSite.cs')
-rw-r--r--ShiftOS_TheReturn/ShiftnetSite.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/ShiftnetSite.cs b/ShiftOS_TheReturn/ShiftnetSite.cs
new file mode 100644
index 0000000..5460171
--- /dev/null
+++ b/ShiftOS_TheReturn/ShiftnetSite.cs
@@ -0,0 +1,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; }
+ }
+}