private void SendAnimationSteps(ContentInfo contentInfo, LOLMessageClient service) { #if(DEBUG) Console.WriteLine("Send animation steps!"); #endif AnimationInfo animationInfoToSend = contentInfo.AnimationItems [contentInfo.ContentState.AnimationIDQ.Peek()]; animationInfoToSend.MessageID = contentInfo.Message.MessageID; contentInfo.AnimationItems [contentInfo.ContentState.AnimationIDQ.Peek()] = animationInfoToSend; foreach (FrameInfo eachFrameInfo in animationInfoToSend.FrameItems.Values) { Console.WriteLine("In frame: {0}", eachFrameInfo.ID); foreach (LayerInfo eachLayerItem in eachFrameInfo.Layers.Values) { Console.WriteLine("\tIn layer: {0}", eachLayerItem.ID); foreach (TransitionInfo eachTrItem in eachLayerItem.Transitions.Values) { foreach (TransitionEffectSettings efSetting in eachTrItem.Settings.Values) { Console.WriteLine("\t\tSetting: {0}. Duration: {1}.", efSetting.EffectType, efSetting.Duration); }//end foreach }//end foreach }//end foreach }//end foreach AnimationStep animStep = animationInfoToSend.CreateAnimationStep(); foreach (AnimationTransition eachTransition in animStep.TransitionItems) { Console.WriteLine("Step transition duration: {0}", eachTransition.TransitionDuration); foreach (KeyValuePair<AnimationTypesTransitionEffectType, double> eachSetting in eachTransition.EffectDelays) { Console.WriteLine("\tStep duration: {0}", eachTransition.EffectDurations [eachSetting.Key]); Console.WriteLine("\tStep delay: {0}", eachTransition.EffectDelays [eachSetting.Key]); Console.WriteLine("\tStep rotation: {0}", eachTransition.EffectRotations [eachSetting.Key]); }//end foreach }//end foreach // Upload animation step service.AnimationStepSaveCompleted += Service_AnimationStepSaveCompleted; service.AnimationStepSaveAsync(animStep, AndroidData.CurrentUser.AccountID, new Guid(AndroidData.ServiceAuthToken), contentInfo); }