# Path: yaklient/helper.py
# def backslash_remove(text):
# def emoji_remove(text):
# def generate_id(dashes=True, upper=False):
# def hash_msg(key, msg):
#     def __init__(self, error_string, response):
#     def __str__(self):
# class ParsingResponseError(Exception):


from abc import abstractmethod
from yaklient import helper
# -*- coding: utf-8 -*-

"""Abstract class for a post on Yik Yak"""



class Message(object):
    """An abstract class for a postable object on Yik Yak (Comment or Yak)"""
    def __init__(self, raw, user):
        """Initialize message from raw JSON dict and user"""
        self.delivery_id = raw["deliveryID"]
        self.liked = raw["liked"]
        self.likes = raw["numberOfLikes"]

# Path: yaklient/helper.py
# def backslash_remove(text):
# def emoji_remove(text):
# def generate_id(dashes=True, upper=False):
# def hash_msg(key, msg):
#     def __init__(self, error_string, response):
#     def __str__(self):
# class ParsingResponseError(Exception):


# Path: yaklient/objects/message.py
from abc import abstractmethod
from yaklient import helper

# -*- coding: utf-8 -*-

"""Abstract class for a post on Yik Yak"""



class Message(object):
    """An abstract class for a postable object on Yik Yak (Comment or Yak)"""
    def __init__(self, raw, user):
        """Initialize message from raw JSON dict and user"""
        self.delivery_id = raw["deliveryID"]
        self.liked = raw["liked"]
        self.likes = raw["numberOfLikes"]

        self.message_id = helper.backslash_remove(raw["messageID"])