From 4c506b5b593d0b6c4344ee9a791d82b07e90c87c Mon Sep 17 00:00:00 2001 From: "Suresh, Kamlesh" Date: Wed, 3 Oct 2018 17:47:42 -0400 Subject: [PATCH] buttonMap --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.h | 3 +++ MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.m | 2 ++ 2 files changed, 5 insertions(+) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.h b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.h index 014e4ba..51848dd 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.h +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.h @@ -23,6 +23,9 @@ // The data for hte page that was loaded @property (nullable, strong, nonatomic) NSDictionary *pageJSON; +// Contains the button map +@property (nullable, nonatomic, strong) NSDictionary *buttonMap; + // the modules that are needed @property (nullable, strong, nonatomic) NSDictionary *modulesJSON; diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.m index 388f911..e9127c2 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadObject.m @@ -18,6 +18,8 @@ if (self = [self initWithRequestParameters:requestParameters dataForPage:dataForPage delegate:delegate]) { self.pageJSON = pageJSON; self.modulesJSON = modulesJSON; + + self.buttonMap = [pageJSON dictionaryForKey:@"ButtonMap"]; } return self; }