Refactored IModule and ITheme interfaces for future compatibility scenarios. Added Permissions property to IModule interface to allow for explicit ordering and custom module permissions.
This commit is contained in:
		| @ -1,16 +1,22 @@ | ||||
| using Oqtane.Modules; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| namespace Oqtane.Client.Modules.Weather | ||||
| { | ||||
|     public class Module : IModule | ||||
|     { | ||||
|         public string Name { get { return "Weather"; } } | ||||
|         public string Description { get { return "Displays random weather using a service"; } } | ||||
|         public string Version { get { return "1.0.0"; } } | ||||
|         public string Owner { get { return ""; } } | ||||
|         public string Url { get { return ""; } } | ||||
|         public string Contact { get { return ""; } } | ||||
|         public string License { get { return ""; } } | ||||
|         public string Dependencies { get { return ""; } } | ||||
|         public Dictionary<string, string> Properties | ||||
|         { | ||||
|             get | ||||
|             { | ||||
|                 Dictionary<string, string> properties = new Dictionary<string, string> | ||||
|                 { | ||||
|                     { "Name", "Weather" }, | ||||
|                     { "Description", "Displays random weather using a service" }, | ||||
|                     { "Version", "1.0.0" } | ||||
|                 }; | ||||
|                 return properties; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker