Classes/001-RedditOAuthScope.ps1
<# .NOTES Created with: VSCode Created on: 4/24/2017 3:37 PM Edited on: 5/10/2017 Created by: Mark Kraus Organization: Filename: 001-RedditOAuthScope.ps1 .DESCRIPTION RedditOAuthScope Class #> Class RedditOAuthScope { [String]$Scope [String]$Id [String]$Name [String]$Description Static [String]$ApiEndpointUri = 'https://www.reddit.com/api/v1/scopes' Static [String] GetApiEndpointUri (){ return [RedditOAuthScope]::ApiEndpointUri } RedditOAuthScope () { $This._init('','','','') } RedditOAuthScope ([String]$Scope) { $This._init($Scope,$Scope,$Scope,$Scope) } RedditOAuthScope ([String]$Scope, [String]$Id, [String]$Name, [String]$Description){ $This._init($Scope, $Id, $Name, $Description) } hidden [void] _init ([String]$Scope, [String]$Id, [String]$Name, [String]$Description){ $This.Scope = $Scope $This.Id = $Id $This.Name = $Name $This.Description = $Description } [string] ToString() { Return $This.Scope } } |