yveskaufmann / sharknetjavafx Goto Github PK
View Code? Open in Web Editor NEWA JavaFX based frontend for the decentralized social network SharkNet
Home Page: http://sharedknowledge.github.io/#sharknet
A JavaFX based frontend for the decentralized social network SharkNet
Home Page: http://sharedknowledge.github.io/#sharknet
reminder from yesterday
Validate if Content is within the allowed filesize
ich brauche eine e-Mail beim Contact
da das ganze auch über Internet laufen soll
When a interest in the profile is defined but i don`t want others to see it
Chat A Nachrichtendetails anzeigen Ansicht signiert/verschlüsselt/verifiziert evt. on über directe Verbindung mit Kontakt
Implement the possibility to vote for different answers to a question
reminder from yesterday
please add this boolean
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();
}
import android.graphics.BitmapFactory;
import android.graphics.Bitmap;
// ...
ImageStream is = ...
Bitmap image = null;
image= BitmapFactory.decodeStream(is.open(), ...);
is.close();
// ...
import javafx.scene.image;
// ...
ImageStream is = ...
Image image image = null;
image= new Image(is.open());
is.close();
// ...
Was meint ihr ?
since it should be possible to delete messages, chats would be also nice
... but the child it self must keep its childs. Its required for changing the hyrarchy of interest tags.
Ich bräuchte ne klasse ImplSetting o.ä. mit dummydaten wie zb
ich bräuchte ne methode
getBlacklist().get(index)
oder so ähnlich um einzelne Contacts aus der Blacklist zu holen
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.
bitte mal signiert und verifiziert für nen chat setzen, damit man unterschied in der gui zur demo sieht
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.
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
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
Please add some parameter, so we can choose newest or oldest messages first
need some login function for Loginscreen
public boolean login(Profile p, String password) or sth like that
just a reminder
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
implement Add Contact to Chat Method
s.o.
please add
Methode schaltet NFC ein.
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.
need a listener / event in implchat for new chat messages
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());
Method which returns a boolen
true - is sent by me
false - is sent by another
Ein int-feld, in dem gespeichert wird, nach wie viel Minuten WifiDirect wieder ausgeschaltet werden soll
Settings noch leere Klasse
Es können noch keine Settings erstellt werden und haben keine auswirungen
Klären: welche settings nötig
Implement in Shark/API
If a Direction is in/out/inout.
Atm: Interest are Topics and Simple SemanticTags. Though they don`t have a direction
The profile must provide a method which generates a new public key and discard the old
public key.
Every message needs to have a sender (the person who sent this message...). The dummy got some messages without a sender
Methoden für KeyExchange. (Methode Exchange Key per NFC -> implentierung in Shark)
GetPublicKey nur Fingerprint
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)
@profil screen
s.o.
Ich bräuchte Boolean-Variablen jeweils ob synchronisiert werden soll:
A Method which signs the Message as bad.
New Contact - Generate Subject Identifier aus Nickname, Timestamp, Geräte-ID
Implementierung des kontaktaustauschs per nfc
Nur Methode bereitstellen - Funktion im SharkFramework
@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;
}
getter for the last direct wifi-contact
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.
wenn wir schon fileextension speichern, dann bitte auch gleich filename :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.