Ë
    �;ºiÜ  ã                   ó>   — d dl mZmZ d dlmZmZmZ  G d„ de«      Zy)é    )ÚABCÚabstractmethod)ÚOptionalÚDictÚAnyc            
       ó¨   — e Zd ZU dZdZeed<   deeef   fd„Z	e
defd„«       Ze
dd	ed
ee   deeef   fd„«       Zddededefd„Zddededefd„Zy)ÚSocialMediaServicez}
    Abstract base class for all social media platform services.
    Every platform must implement connect() and post().
    ÚbaseÚplatform_nameÚcredentialsc                 ó   — || _         y)z‚
        Initialize with decrypted credentials dict.
        e.g. {'api_key': '...', 'secret_key': '...', 'extra': '...'}
        N)r   )Úselfr   s     úq/var/labsstorage/home/Thilakkumar/htdocs/soical-media-automation/automation_platform/app/services/base_service.pyÚ__init__zSocialMediaService.__init__   s   € ð
 'ˆÕó    Úreturnc                  ó   — y)z6Validate that the provided credentials are sufficient.N© )r   s    r   Úvalidate_credentialsz'SocialMediaService.validate_credentials   s   € ð 	r   NÚcontentÚ
media_pathc                  ó   — y)z{
        Post content to the platform.
        Returns a dict with keys: success (bool), message (str), data (any)
        Nr   )r   r   r   s      r   ÚpostzSocialMediaService.post   s   € ð 	r   ÚmessageÚdatac                 ó   — d||dœS )NT©Úsuccessr   r   r   ©r   r   r   s      r   Ú_successzSocialMediaService._success!   s   € Ø¨G¸TÑBÐBr   c                 ó   — d||dœS )NFr   r   r   s      r   Ú_errorzSocialMediaService._error$   s   € Ø ¨W¸dÑCÐCr   )N)zPosted successfullyN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚstrÚ__annotations__r   r   r   r   Úboolr   r   r   r    r"   r   r   r   r	   r	      sµ   … ñð
  €M�3Óð' D¨¨c¨¡Nó 'ð ð dò ó ðð ñ˜Cð ¨X°c©]ð ÀdÈ3ÐPSÈ8Ánò ó ðñC ð CÀ3ð CÐRVó CñD˜cð D¨ð D¸ô Dr   r	   N)Úabcr   r   Útypingr   r   r   r	   r   r   r   ú<module>r,      s   ðß #ß &Ñ &ô D˜õ  Dr   