§
    «¶žiÜ  ã                   óF   — d dl mZmZ d dlmZmZmZ  G d„ de¦  «        ZdS )é    )Ú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dS )ÚSocialMediaServicez}
    Abstract base class for all social media platform services.
    Every platform must implement connect() and post().
    ÚbaseÚplatform_nameÚcredentialsc                 ó   — || _         dS )z‚
        Initialize with decrypted credentials dict.
        e.g. {'api_key': '...', 'secret_key': '...', 'extra': '...'}
        N)r   )Úselfr   s     úlC:\Users\ELCOT\Desktop\my one click automation soical media\automation_platform\app\services\base_service.pyÚ__init__zSocialMediaService.__init__   s   € ð
 'ˆÔÐÐó    Úreturnc                 ó   — dS )z6Validate that the provided credentials are sufficient.N© )r   s    r   Úvalidate_credentialsz'SocialMediaService.validate_credentials   s	   € ð 	ˆr   NÚcontentÚ
media_pathc                 ó   — dS )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   úPosted successfullyÚmessageÚdatac                 ó   — d||dœS )NT©Úsuccessr   r   r   ©r   r   r   s      r   Ú_successzSocialMediaService._success!   s   € Ø¨G¸TÐBÐBÐBr   c                 ó   — d||dœS )NFr   r   r    s      r   Ú_errorzSocialMediaService._error$   s   € Ø ¨W¸dÐCÐCÐCr   )N)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚstrÚ__annotations__r   r   r   r   Úboolr   r   r   r!   r#   r   r   r   r	   r	      s2  € € € € € € ðð ð
  €M�3ÐÐÑð' D¨¨c¨¤Nð 'ð 'ð 'ð 'ð ð dð ð ð ñ „^ðð ðð ˜Cð ¨X°c¬]ð ÀdÈ3ÐPSÈ8Änð ð ð ñ „^ððCð C ð CÀ3ð CÐRVð Cð Cð Cð CðDð D˜cð D¨ð D¸ð Dð Dð Dð Dð Dð Dr   r	   N)Úabcr   r   Útypingr   r   r   r	   r   r   r   ú<module>r-      sy   ðØ #Ð #Ð #Ð #Ð #Ð #Ð #Ð #Ø &Ð &Ð &Ð &Ð &Ð &Ð &Ð &Ð &Ð &ð Dð  Dð  Dð  Dð  D˜ñ  Dô  Dð  Dð  Dð  Dr   