๐ตBuy me a Coffee
shivam1608 / jmailtm Goto Github PK
View Code? Open in Web Editor NEWJMailTM is a Lightweight Java Wrapper for https://mail.tm API (A Temp Mail Service) Easy to Use and Automate things (Open-Source)
License: MIT License
JMailTM is a Lightweight Java Wrapper for https://mail.tm API (A Temp Mail Service) Easy to Use and Automate things (Open-Source)
License: MIT License
๐ตBuy me a Coffee
Whenever we retrieve a value from the json field, we use .toString() which could throw NullPointerException. That field may be allowed to have null but since we have .toString() we would end up with NPE. This PR aims at avoiding such NPE. Its a better alternative to null check.
PFB the PR raised for the same.
#7
There are some methods which only gives asynchronous option.
Like delete method in JMailTM class, or save method in Attachment class.
For me it looks like a good idea to give a synchronous version of this method.
It doesn't look a hard task to do since these methods have similar format(just some code snippet surrounded by new Thread(new Runnable() { ... }).start();
).
So I'll be happy to do some contribution myself, but I'm not sure what is best option to achieve the goal.
deleteNow
/**
* (Synchronous) Deletes the Self Account
*/
public void deleteNow(){
try{
IO.requestDELETE(baseUrl+"/accounts/"+id , bearerToken);
}catch (Exception e){
System.out.println("|EXCEPTION IGNORE | "+e);
}
}
/**
* (Asynchronous) Deletes the Self Account
*/
public void delete(){
new Thread(this::deleteNow).start();
}
XX(Asynchronous)
<-> XXNow(Synchronous)
naming pattern doesn't match existing code like asyncXX(Asynchronous)
<-> XX(Synchronous)
(see fetchMessages) /**
* (Synchronous) Deletes the Self Account
*/
public void delete(){
try{
IO.requestDELETE(baseUrl+"/accounts/"+id , bearerToken);
}catch (Exception e){
System.out.println("|EXCEPTION IGNORE | "+e);
}
}
/**
* (Asynchronous) Deletes the Self Account
*/
public void asyncDelete(){
new Thread(this::deleteNow).start();
}
delete
method returns Future
objectsubmit
method will return a Future
object.WorkCallback
class will be easily changed to Future<Boolean>
jmailtmObjectList.stream().foreach(JMailTM::delete)
) will result an error.What would be the best option?
I could see you have fixed it but it is not available in 0.7.0
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.