Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Add url and send_after options #7

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

hsamadi
Copy link

@hsamadi hsamadi commented Jun 8, 2018

A new method was also added by @dolohow for retrieving device information.

@dolohow
Copy link

dolohow commented Jun 8, 2018

Thanks for reusing my work :)

@joaobarbosa
Copy link
Owner

@hsamadi thanks for your PR! :D

Can you just check the build status, please? Looks like a PEP8 issue happened. It looks awesome, by the way. 👍

@hsamadi
Copy link
Author

hsamadi commented Jun 13, 2018

Sure. I'm a little busy but I'll do that ASAP.

@@ -174,7 +174,8 @@ def get_payload_for_request(self):
payload = {
'app_id': self.app_id,
# Should change when template/content_available support be done
'contents': self.contents
'contents': self.contents,
'android_accent_color': 'FFE42D1F',
Copy link
Owner

@joaobarbosa joaobarbosa Sep 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about making android_accent_color a property in the class?

# Mode related settings
if self.mode == self.DEVICES_MODE:
payload.update({'include_player_ids': self.include_player_ids})

# Common parameters
if len(self.data) > 0:
payload.update({'data': self.data})
payload.update({'data': self.data})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the verification? I didn't understand 🤔

}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unwanted space? 😬

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants