예제 #1
0
 def ConvertActionsToJson_Success(self):
     basePinLayout = PinLayout("tty", "base layout!", "subt", "fgcolor", "bgcolor", "base pin body", "tico")
     notificationPinLayout = PinLayout("tty", "ttle", "subt2", "fgcolor", "bgcolor", "bdy", "tico")
     pinAction = PinAction("actiontitle", "actiontype", "actionLaunchCode")
     pinAction2 = PinAction("actiontitle2", "actiontype2", "actionLaunchCode2")
     pinActions = [pinAction, pinAction2]
     notification = PinNotification()
     notification.Layout = notificationPinLayout
     pin = Pin("rafeePooIDDD", "01/01/2015", 2, notification, basePinLayout, pinActions)
     PebbleHelper.ConvertActionsToJson(pin)
예제 #2
0
 def PinNotification_Success(self):
     notificationPinLayout = PinLayout("tty", "ttle", "fgcolor", "bgcolor", "bdy", "tico")
     notification = PinNotification()
     notification.layout = notificationPinLayout
     print vars(notification.Layout)