@@ -0,0 +1,1347 @@
+/*%0A * Copyright (c) 2016 Qiscus.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.qiscus.sdk.data.remote;%0A%0Aimport com.schinizer.rxunfurl.RxUnfurl;%0Aimport com.schinizer.rxunfurl.model.PreviewData;%0A%0Aimport rx.Observable;%0Aimport rx.schedulers.Schedulers;%0A%0A/**%0A * Created on : December 09, 2016%0A * Author     : zetbaitsu%0A * Name       : Zetra%0A * GitHub     : https://github.com/zetbaitsu%0A */%0Apublic enum QiscusUrlScraper %7B%0A    INSTANCE;%0A%0A    private final RxUnfurl rxUnfurl;%0A%0A    QiscusUrlScraper() %7B%0A        rxUnfurl = new RxUnfurl.Builder()%0A                .scheduler(Schedulers.io())%0A                .build();%0A    %7D%0A%0A    public static QiscusUrlScraper getInstance() %7B%0A        return INSTANCE;%0A    %7D%0A%0A    public Observable%3CPreviewData%3E generatePreviewData(String url) %7B%0A        return rxUnfurl.generatePreview(url);%0A    %7D%0A%7D%0A

Add singleton for getting link preview data