def __init__(self): super().__init__() self.caption = params.POSTDataParam('caption', False, str) self.link = params.POSTDataParam('link', False, str) self.source = params.POSTDataParam('source', False, str) self.data = params.POSTDataParam('data', False, list, getter_lambda=lambda x: ','.join(x)) self.data64 = params.POSTDataParam('data', False, str)
def __init__(self): super().__init__() self.title = params.POSTDataParam('title', False, str) self.url = params.POSTDataParam('url', True, str) self.description = params.POSTDataParam('description', False, str) self.thumbnail = params.POSTDataParam('thumbnail', False, str) self.excerpt = params.POSTDataParam('excerpt', False, str) self.author = params.POSTDataParam('author', False, str)
def __init__(self): super().__init__() self.post_type = params.POSTDataParam('type', False, str) self.state = params.POSTDataParam('state', False, str) self.tags = params.POSTDataParam('tags', False, list, getter_lambda=lambda x: ','.join(x)) self.tweet = params.POSTDataParam('tweet', False, str) self.date = params.POSTDataParam( 'date', False, datetime, getter_lambda=lambda x: x.strftime('%Y-%m-%d %H:%M:%S')) self.post_format = params.POSTDataParam('format', False, str, str) self.slug = params.POSTDataParam('slug', False, str) self.native_inline_images = params.POSTDataParam( 'native_inline_images', False, bool, getter_lambda=lambda x: 'true' if x else 'false')
def __init__(self): super().__init__() self.post_id = params.POSTDataParam('id', True, str) self.reblog_key = params.POSTDataParam('reblog_key', True, str)
def __init__(self): super().__init__() self.url = params.POSTDataParam('url', True, str)
def __init__(self): super().__init__() self.post_id = params.POSTDataParam('id', True, int)
def __init__(self): super().__init__() self.caption = params.POSTDataParam('caption', False, str) self.embed = params.POSTDataParam('embed', False, str) self.data = params.POSTDataParam('data', False, str)
def __init__(self): super().__init__() self.title = params.POSTDataParam('title', False, str) self.conversation = params.POSTDataParam('conversation', True, str)
def __init__(self): super().__init__() self.quote = params.POSTDataParam('quote', True, str) self.source = params.POSTDataParam('source', False, str)
def __init__(self): super().__init__() self.title = params.POSTDataParam('title', False, str) self.body = params.POSTDataParam('body', True, str)