Code Monkey home page Code Monkey logo

meme_club's Introduction

meme_club

Edit on StackBlitz ⚡️

/!\ UI code que dans le dossier /ui, index.js:init() est appelée en premier. /!\ N'utiliser que les fonctions dans lib/data.js /!\

Structure d'un message:

Event Type Field Description
"message"
A message was sent to a thread.
attachments An array of attachments to the message. Attachments vary in type, see the attachments table below.
hasReaction(reaction) A reçu la réaction ? : (:string) => boolean
reactionMap Nombre de réaction : Object, clé (reaction):string, value (amount):integer
nbReaction Nombre de réaction total : :integer
body The string corresponding to the message that was just received.
isGroup boolean, true if this thread is a group thread (more than 2 participants).
mentions An object containing people mentioned/tagged in the message in the format { id: name }
messageID A string representing the message ID.
senderID The id of the person who sent the message in the chat with threadID.
threadID The threadID representing the thread in which the message was sent.
isUnread Boolean representing whether or not the message was read.
type

Structure d'un attachment

Les attachments varient en fonction de la valeur de leur attribut type
Attachment Type Fields
"sticker" ID, url, packID, spriteUrl, spriteUrl2x, width, height, caption, description, frameCount, frameRate, framesPerRow, framesPerCol
"file" ID, filename, url, isMalicious, contentType
"photo" ID, filename, thumbnailUrl, previewUrl, previewWidth, previewHeight, largePreviewUrl, largePreviewWidth, largePreviewHeight
"animated_image" ID, filename, previewUrl, previewWidth, previewHeight, url, width, height
"video" ID, filename, previewUrl, previewWidth, previewHeight, url, width, height, duration, videoType
"audio" ID, filename, audioType, duration, url, isVoiceMail
"location" ID, latitude, longitude, image, width, height, url, address
"share" ID, url, title, description, source, image, width, height, playable, duration, playableUrl, subattachments, properties

Structure d'un user

Les user sont accessible via la liste des utilisateurs users dans fetch.js ou par les différentes méthodes retrounant des listes d'user.
Field Description
"id" Identifiant unique de l'utilisateur
"name" Nom + prénom de l'utilisateur
"firstName" Prénom de l'utilisateur
"nickname" Surnom de l'utilisateur
"thumbSrc" URL de la photo de l'utilisateur
"nbMeme" Nombre de media envoyés
"nbReaction" Nombre de réaction reçue
"nbNotMeme" Nombre de message non medias envoyés
"nbMessage" Nomnbre de messages envoyés
"messages" Liste des messages envoyés. Que dans le cas d'un utilisateur inconnu

meme_club's People

Contributors

biratus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.