-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from unigrid-project/unlockstate
Added an enum to wallet to handel unlock and lock stat
- Loading branch information
Showing
7 changed files
with
84 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
fx/src/main/java/org/unigrid/janus/model/rpc/entity/GetUnlockState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
The Janus Wallet | ||
Copyright © 2021-2022 The Unigrid Foundation | ||
This program is free software: you can redistribute it and/or modify it under the terms of the | ||
addended GNU Affero General Public License as published by the Free Software Foundation, version 3 | ||
of the License (see COPYING and COPYING.addendum). | ||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without | ||
even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received an addended copy of the GNU Affero General Public License with this program. | ||
If not, see <http://www.gnu.org/licenses/> and <https://github.com/unigrid-project/janus-java>. | ||
*/ | ||
|
||
package org.unigrid.janus.model.rpc.entity; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = false) | ||
public class GetUnlockState extends BaseResult<GetUnlockState.Result> { | ||
|
||
public static final String METHOD = "getunlockstate"; | ||
|
||
public static class Request extends BaseRequest { | ||
|
||
public Request() { | ||
super(METHOD); | ||
} | ||
} | ||
|
||
@Data | ||
public static class Result { | ||
private String state; | ||
private int remainingtime; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters