bunq / sdk_java

Java SDK for bunq API
MIT License
49 stars 23 forks source link

Added isExpired() method #23. #24

Closed OGKevin closed 7 years ago

OGKevin commented 7 years ago

Context

23

What has been done

This pr introduces a new way to handle SessionContext. Now it is possible to do the following:

    if (apiContext.isExpired()) {
      apiContext.resetSession();
      apiContext.save();
    }

This way there is no saving an unchanged context.

Closes #23

OGKevin commented 7 years ago

@dnl-blkv all yours 👀

OGKevin commented 7 years ago

@dnl-blkv all yours again 🙉

dnl-blkv commented 7 years ago

@andrederoos