Last active
January 1, 2016 07:08
-
-
Save gregberns/8109218 to your computer and use it in GitHub Desktop.
Basic object structure for Support System
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class Thread | |
Public Posts as List(of Post) | |
Property Subject as String | |
Property Status as int | |
Property Product as String | |
Property Priority as int | |
Property CallType as int | |
Property AssignedToUser as User | |
Property AccountManager as User | |
Property OpenDateTime as DateTime | |
Public Sub GetThread(ID as int) | |
Return Me | |
End Sub | |
Public Sub NewThread() | |
Dim Created as Boolean = True | |
Return Created | |
End Sub | |
Public Sub DeleteThread() | |
Dim Created as Boolean = True | |
Return Created | |
End Sub | |
Public Sub UpdateThread() | |
End Sub | |
Public Sub AddPost(post as Post) | |
If post.Validate() Then | |
Posts.Add(post) | |
End If | |
End Sub | |
End Class | |
Class Post | |
Property PostingUser as User | |
Propery ExternalText as string | |
Property InternalText as string | |
Public Function GetPost(threadID as int) | |
Return Me | |
End Function | |
Public Function AddPost(threadID as int) | |
Return Me | |
End Function | |
Public Function DeletePost(threadID as int, postID as int) | |
Return Me | |
End Function | |
Private Function _validate() as Boolean | |
Return False | |
End Function | |
End class | |
Public Class User | |
ID as int | |
Name as string | |
AccessLevel as int | |
Company as Company | |
End Class | |
Public Class Company | |
ID as int | |
Name as string | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment