 
     public class func shareMessage(message: Message, finish: Finish) {
 
-        let appID = "wxd930ea5d5a258f4f"
+        switch message {
 
-        let dic = [
-            appID: [
-                "result": "1",
-                "returnFromApp": "0",
-                "scene": "0",
-                "sdkver": "1.5",
-                "command": "1010",
+        case .WeChat(let type):
 
-                "title": "Hello",
-                "mediaUrl": "http://baidu.com",
-                "objectType": "5",
-            ]
-        ]
+            for case let .WeChat(appID) in sharedMonkeyKing.accounts {
 
-        guard let data = try? NSPropertyListSerialization.dataWithPropertyList(dic, format: NSPropertyListFormat.BinaryFormat_v1_0, options: NSPropertyListWriteOptions(0)) else {
-            return
+                var info: [String: String] = [
+                    "result": "1",
+                    "returnFromApp": "0",
+                    "scene": type.scene,
+                    "sdkver": "1.5",
+                    "command": "1010",
+                ]
+
+                switch type {
+                case .Session:
+
+                    info["title"] = "Hello"
+                    info["mediaUrl"] = "http://baidu.com"
+                    info["objectType"] = "5"
+
+                case .Timeline:
+                    break
+                }
+
+                let dic = [appID: info]
+
+                guard let data = try? NSPropertyListSerialization.dataWithPropertyList(dic, format: NSPropertyListFormat.BinaryFormat_v1_0, options: NSPropertyListWriteOptions(0)) else {
+                    return
+                }
+
+                UIPasteboard.generalPasteboard().setData(data, forPasteboardType: "content")
+
+                let weChatSchemeURLString = "weixin://app/\(appID)/sendreq/?"
+
+                guard let URL = NSURL(string: weChatSchemeURLString) else {
+                    return
+                }
+                
+                UIApplication.sharedApplication().openURL(URL)
+            }
         }
-
-        UIPasteboard.generalPasteboard().setData(data, forPasteboardType: "content")
-
-        let weChatSchemeURLString = "weixin://app/\(appID)/sendreq/?"
-
-        guard let URL = NSURL(string: weChatSchemeURLString) else {
-            return
-        }
-
-        UIApplication.sharedApplication().openURL(URL)
     }
 }
 


public class MonkeyKing {

    static let monkeyKing = MonkeyKing()

    public enum Account {
        case WeChat(appID: String)

        public enum WeChatType {
            case Session
            case Timeline

            var scene: String {
                switch self {
                case .Session:
                    return "0"
                case .Timeline:
                    return "1"
                }
            }
        }
        case WeChat(WeChatType)
    }
