ibm-swift / alert-notification-sdk Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
if callback != nil {
callback!(...)
can be rewritten as:
callback?(...)
This is applicable to other places in the code such as:
Alert(data: data!)
We can instead have Alert(data: data)
inside a block that looks like this if let data = data { }
if error != nil {...}
let's rewrite it as:
if let error = error {...}
This is applicable to other cases in the code such as:
if data == nil { ... }
If the values passed as arguments to the constructor of Message are not valid, let's raise an error.
Let's rename ServerCredentials
to AlertServiceCredentials
.
Would it make sense to make the createSession() method as an extension to URLSession?
Would it make sense to define AlertURL, Detail, Severity, AlertStatus, and NotificationState as an inner entities inside the Alert class? These entities seem to exist and have meaning only within the context of Alert. Also, if we make AlertStatus an inner entity of Alert, we can then just rename it to Status (same is probably true about AlertURL).
@TheSoundDefense For this task, please reach out to @BDHernand. He can provide you with the necessary guidance to complete the necessary steps.
As reference
[![Build Status - Develop](https://travis-ci.org/IBM-Swift/Swift-cfenv.svg?branch=develop)](https://travis-ci.org/IBM-Swift/Swift-cfenv)
![macOS](https://img.shields.io/badge/os-macOS-green.svg?style=flat)
![Linux](https://img.shields.io/badge/os-linux-green.svg?style=flat)
More references:
https://raw.githubusercontent.com/IBM-Swift/Swift-cfenv/master/README.md
https://github.com/IBM-Swift/Swift-cfenv/blob/master/README.md
Some of the constructors take many paramaters. Here's a few links that can help with this:
This includes (hopefully) removing any KituraNet code.
As reference, see Swift-cfenv sources: https://github.com/IBM-Swift/Swift-cfenv
Once the first milestone is completed, clone the master branch and create a develop branch. Moving forward we should use the develop branch for any new features and bug fixes.
Get familiar with the basic offerings provided by the Alert Notification Service (e.g. types of notifications supported; categorization of alerts; routing of notifications to individuals and/or groups; etc.).
As a reference:
Using the singleton construct, we can initialize a single HeliumLogger for use in the code, circumventing the potential memory leak we saw previously.
If we can use a single shared session instead of creating a new session for each request, we can remove the bugged finishTasksAndInvalidate()
function. I suspect this will allow us to completely remove the KituraNet code and allow us to use pure URLSession on both macOS and Linux.
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.