forked from joshuamsmith/ConnectPyse
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efad655
commit 9a8170a
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from ..cw_model import CWModel | ||
|
||
|
||
class BoardInfo(CWModel): | ||
|
||
def __init__(self, json_dict=None): | ||
self.id = None # (Integer) | ||
self.name = None # *(String(50)) | ||
self.locationId = None # *(Integer) | ||
self.businessUnitId = None # *(Integer) | ||
self.inactive = None # (Boolean) | ||
self.signOffTemplate = None # (ServiceSignoffReference) | ||
self.sendToContact = None # (Boolean) | ||
self.contactTemplateId = None # (Integer) | ||
self.sendToResource = None # (Boolean) | ||
self.resourceTemplateId = None # (Integer) | ||
self.projectFlag = None # (Boolean) | ||
self.showDependenciesFlag = None # (Boolean) | ||
self.showEstimatesFlag = None # (Boolean) | ||
self._info = None # (Metadata) | ||
|
||
# initialize object with json dict | ||
super().__init__(json_dict) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from ..cw_controller import CWController | ||
# Class for /service/info/boards | ||
from . import board_info | ||
|
||
|
||
class BoardsInfoAPI(CWController): | ||
def __init__(self, **kwargs): | ||
self.module_url = 'service' | ||
self.module = 'info/boards' | ||
self._class = board_info.BoardInfo | ||
super().__init__(**kwargs) # instance gets passed to parent object | ||
|
||
def get_boards_info(self): | ||
return super()._get() | ||
|
||
def get_boards_info_count(self): | ||
return super()._get_count() | ||
|
||
def get_board_info_by_id(self, entry_id): | ||
return super()._get_by_id(entry_id) |