FreeRDP
Loading...
Searching...
No Matches
HistoryEntity.java
1/*
2 Connection history entity
3
4 Copyright 2026 Ibrahim Sevinc <ibrahim.sevinc.mail@gmail.com>
5
6 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 If a copy of the MPL was not distributed with this file, You can obtain one at
8 http://mozilla.org/MPL/2.0/.
9*/
10
11package com.freerdp.freerdpcore.data;
12
13import androidx.annotation.NonNull;
14import androidx.room.ColumnInfo;
15import androidx.room.Entity;
16import androidx.room.PrimaryKey;
17
18import java.util.Date;
19
20@Entity(tableName = "quick_connect_history") public class HistoryEntity
21{
22 @PrimaryKey @ColumnInfo(name = "item", defaultValue = "") @NonNull public String item;
23
24 @ColumnInfo(name = "timestamp", defaultValue = "0") public long timestamp;
25
26 public HistoryEntity(@NonNull String item)
27 {
28 this.item = item;
29 this.timestamp = new Date().getTime();
30 }
31}