Search in sources :

Example 1 with User

use of de.westnordost.osmapi.user.User in project StreetComplete by westnordost.

the class OsmQuestChangesUploadTest method createChangesetForUser.

private static ChangesetInfo createChangesetForUser(long id) {
    ChangesetInfo result = new ChangesetInfo();
    result.user = new User(id, "Hans Wurst");
    return result;
}
Also used : User(de.westnordost.osmapi.user.User) ChangesetInfo(de.westnordost.osmapi.changesets.ChangesetInfo)

Example 2 with User

use of de.westnordost.osmapi.user.User in project StreetComplete by westnordost.

the class NoteDaoTest method createNote.

static Note createNote() {
    Note note = new Note();
    note.position = new OsmLatLon(1, 1);
    note.status = Note.Status.OPEN;
    note.id = 5;
    note.dateCreated = new Date(5000);
    NoteComment comment = new NoteComment();
    comment.text = "hi";
    comment.date = new Date(5000);
    comment.action = NoteComment.Action.OPENED;
    comment.user = new User(5, "PingPong");
    note.comments.add(comment);
    return note;
}
Also used : NoteComment(de.westnordost.osmapi.notes.NoteComment) User(de.westnordost.osmapi.user.User) Note(de.westnordost.osmapi.notes.Note) OsmLatLon(de.westnordost.osmapi.map.data.OsmLatLon) Date(java.util.Date)

Aggregations

User (de.westnordost.osmapi.user.User)2 ChangesetInfo (de.westnordost.osmapi.changesets.ChangesetInfo)1 OsmLatLon (de.westnordost.osmapi.map.data.OsmLatLon)1 Note (de.westnordost.osmapi.notes.Note)1 NoteComment (de.westnordost.osmapi.notes.NoteComment)1 Date (java.util.Date)1