//
//  OffcnToast.m
//  OffcnIMSDKiOS
//
//  Created by vockey on 2019/4/9.
//  Copyright © 2019年 中公教育. All rights reserved.
//

#import "OffcnToast.h"
#import "DSToast.h"
#import "SDGeneralDefine.h"

@implementation OffcnToast

//toast
+(void)toastWithTitlemessage:(NSString *)titlemessage{
    if(titlemessage.length>0){
        DSToast *toast = [[DSToast alloc] initWithText:titlemessage];
        toast.maxWidth = 284.0;
        toast.textInsets = UIEdgeInsetsMake(13.5, 44, 13.5, 44);
        [toast showInView:KKeyWindow showType:DSToastShowTypeCenter];
    }
}

+(void)toastWithTitlemessage:(NSString *)titlemessage showType:(DSToastShowType)type{
    if(titlemessage.length>0){
        DSToast *toast = [[DSToast alloc] initWithText:titlemessage];
        toast.maxWidth = 284.0;
        toast.textInsets = UIEdgeInsetsMake(13.5, 44, 13.5, 44);
        [toast showInView:KKeyWindow showType:type];
    }
}
@end
