Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Felix' Wire Conversation Programming Experience

Fi0x edited this page Nov 28, 2020 · 6 revisions

Store conversations

  • Creating general structure to request, receive and handle HTML conversation packet
  • Using the JSONParser library to read the body and store data of each conversation as WireConversation object
  • Used multiple private methods in WireConversation class for better overview
  • Storing all conversations in WireStorage class
  • Completed getAllConversationNames method to test if storage works

Listing conversations

  • Using the Data interface to get a list of all conversation ids and a second method to get the name of a conversation by id
    • The conversation names of private chats do not always match the name of the conversation partner
    • Need to get the name of the conversation partner and store it as conversation name
  • Printing all conversation names

Selecting a conversation

  • User can type in a part of the conversation name he would like to open
  • Storing all conversation ids which conversation names match the user-input in a list
  • If there are more than 1 or 0 conversation names that match the user-input, ask the user again which chat he would like
  • Save the id of the selected conversation and opening it