Giter VIP home page Giter VIP logo

sharknetjavafx's Introduction

SharkNetJavaFX

sharknetjavafx's People

Contributors

benjaminreenk avatar blackicetee avatar johann44 avatar timo-lingnau avatar yveskaufmann avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sharedknowledge

sharknetjavafx's Issues

Content - Votes

Implement the possibility to vote for different answers to a question

Return type für Images

Ich benötige vom Contact das Image als java.io.InputStream, da dies sowohl
für Android als auch für JavaFX funktionieren würde.

Daher schlage ich folgendes Interface vor:

import java.io.Closeable;
import java.io.InputStream;

public interface ImageStream extends Closeable {
    InputStream open();
    String getMIMEType();
}

Verwendung unter Android:

import android.graphics.BitmapFactory;
import android.graphics.Bitmap;
// ...
    ImageStream is = ...
    Bitmap image = null;
    image= BitmapFactory.decodeStream(is.open(), ...);
    is.close();
// ...

Verwendung unter JavaFX:

import javafx.scene.image;
// ...
    ImageStream is = ...
    Image image image = null;
    image= new Image(is.open());
    is.close();    
// ...

Was meint ihr ?

Setting Dummy

Ich bräuchte ne klasse ImplSetting o.ä. mit dummydaten wie zb

  • radar ist an oder aus
  • wifidirect ausschalten nach .. min
  • Weiterleiten bis zu .. MB
  • smtp server
  • imap server

Titel und Bild von einem GruppenChat

Ich brauche eine Funktion getTitle(),getImage von einem Chat.
Bei einer einzelnen Person soll der Name der Person zurückgegeben werden und
bei einem GruppenChat soll der Titel ausgegeben werden.
Wenn ich alle Chats in einer ListView anzeige, müssen da auch Titel und Bild hin.

Dummy Data

bitte mal signiert und verifiziert für nen chat setzen, damit man unterschied in der gui zur demo sieht

Bug: chat.sendMessage()

Seit kurzem funktioniert die Funktion chat.sendMessage() anscheinend nicht mehr, nachdem man mittels .newChat() einen neuen Chat erzeugt hat. Die Size der Message Liste ist 0...
Bei bestehenden chats funktioniert sendMessage() noch.

ImplSharkNet

Zeile 81: contact_list.removeAll(myProfile.getBlacklist().getList());

hier wird eine Nullpointer Exception geworfen, wenn man sich mit einem neu angelegten Profil einloggen möchte. . -> .getList() liefert null zurück

Speichern von Contents/Images über OutputStram

Das Speichern von Contents über InputStream, wie ist das gedacht ?

Habe Probleme damit Bilder zu speichern, die ich nicht in Daten vorliegen.
Ich muss bisher, dass Bild über einen ByteOutputStream in ein Byte-Array umwandeln um der Content Klasse ein ByteStream zu übergeben. So werden die Daten praktisch mehrfach eingelesen.

Ich denke es wäre besser, dass das Content Interface sowohl einen OutputStream für das schreiben als auch einen InputStream für das lesen anbietet. Ähnlich wie es das Information
Information Interface im Shark Framework tut:

public interface Content {
        ...
    /**
     *Returns the content as IO Stream
     */
    public InputStream openInputStream();

        /**
     * Enables you to priovide data to the content.
     */
    public OutputStream openOutputStream();
       ...
}

So können die unterschiedlichsten Arten von Contents Implementiert werden z.b

  • ByteArrayContent erstellt über sharkNet.getContentFactory().create(byte[])
  • StringContent erstellt über sharkNet.getContentFactory().create(String)

message sorting

Please add some parameter, so we can choose newest or oldest messages first

SharkNet.login()

need some login function for Loginscreen

public boolean login(Profile p, String password) or sth like that

Chat ID

ich brauche eine getChatID() Funktion
da die Chats ständig in einer anderen Reihenfolge angezeigt werden (Sortierung nach Zeit), brauche ich eine ID, damit ich es 1:1 zuordnen kann

NFC Contact-Exchange

Methode schaltet NFC ein.

  • Entweder Action Listener der bei Kontaktaustausch Event erhält
    oder
  • Timer in Methode der nach Ablauf Contakt oder null zurückliefert.

Content Mimetypes

Wir sollten besser den MimeType des Contents speicher anstatt der Extension.
Files-Extension sind nicht standardisiert, Mime-Types hingegen schon und zu dem
speichern wir die Files-Extensio bereits über den Dateinamen.

Feed Comments are duplicated

When a feed comment is created by calling the snippet below, then the comment is duplicated.
A call to feed.getComments returns the created Feed twice.

feed.newComment(new ImplContent(comment), sharkNet.getMyProfile().getContact());

Message - is Mine

Method which returns a boolen
true - is sent by me
false - is sent by another

Setting: Wifidirect off

Ein int-feld, in dem gespeichert wird, nach wie viel Minuten WifiDirect wieder ausgeschaltet werden soll

Implement Settings

Settings noch leere Klasse
Es können noch keine Settings erstellt werden und haben keine auswirungen
Klären: welche settings nötig

Message Sender

Every message needs to have a sender (the person who sent this message...). The dummy got some messages without a sender

Prepare Key-Management

Methoden für KeyExchange. (Methode Exchange Key per NFC -> implentierung in Shark)
GetPublicKey nur Fingerprint

Implement Interests

Interessen sollen als SemanticNet an die GUI gereicht werden
Feeds werden mit Interessen versehen
Feeds können nach Interessen gefiltert werden (Methode hierfür schon implementiert)

Exchange Contacts

Implementierung des kontaktaustauschs per nfc
Nur Methode bereitstellen - Funktion im SharkFramework

Implement Search feeds with special interest

@Override
public List<Feed> getFeeds(Interest i, int start_index, int stop_index, boolean descending) {
    //ToDo: Implement - return feeds with interest i from start to stop, sorted by time
    return null;
}

Feed.getSender should return a contact reference

This is needed in order to access informations about the contact such as the name, the profile picture and son on. Also its enables us to create a link which leads to the contact of the sender.

content filename

wenn wir schon fileextension speichern, dann bitte auch gleich filename :)

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.